sltowl

Key-Value Input

Forms

About

A dynamic form field for adding, editing and removing up to three unique key/value metadata pairs, with built-in validation for blank or duplicate keys and max-length limits. Ported to React from SL UI Library's vanilla HTML/JS component (MIT, original by SLtowl).

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Key-Value Input to your project and fits it to your theme.

Code

How Key-Value Input is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import KeyValueInput from "@/components/ui/matte-inputs-key-value-v11";

export default function KeyValueInputDemo() {
  return (
    <div
      className="min-h-screen w-full flex items-center justify-center p-6"
      style={{ background: "#f5f4f2" }}
    >
      <KeyValueInput
        onChange={(state) => {
          console.log(state);
        }}
      />
    </div>
  );
}

More by sltowl

View all
  • Playback Scrubber

    Playback Scrubber

    48
  • Matte Alert Feedback

    Matte Alert Feedback

    43
  • Notification Stack

    Notification Stack

    32
  • Time Window Slider

    Time Window Slider

    21
  • Commands Menu

    Commands Menu

    15
  • Matte Meter Slider

    Matte Meter Slider

    15
  • Matte Opacity Slider

    Matte Opacity Slider

    13
  • Undo Feedback

    Undo Feedback

    8

More in Forms

View all
  • Premium Auth

    Premium Auth

    524
  • Contact Card

    Contact Card

    1K
  • Book A Demo 1

    Book A Demo 1

    73
  • Form

    Form

    16
  • Login 1

    Login 1

    53
  • Book A Demo 3

    Book A Demo 3

    89
  • Hand-Drawn Checkbox

    Hand-Drawn Checkbox

    48
  • Login Card

    Login Card

    6