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

    43
  • Matte Alert Feedback

    Matte Alert Feedback

    39
  • Notification Stack

    Notification Stack

    29
  • Time Window Slider

    Time Window Slider

    20
  • Commands Menu

    Commands Menu

    14
  • Matte Meter Slider

    Matte Meter Slider

    14
  • Matte Opacity Slider

    Matte Opacity Slider

    11
  • Undo Feedback

    Undo Feedback

    8

More in Forms

View all
  • Premium Auth

    Premium Auth

    496
  • Login 2

    Login 2

    7
  • Login 1

    Login 1

    52
  • Authentication Card

    Authentication Card

    45
  • Contact Card

    Contact Card

    1K
  • Form

    Form

    16
  • Card Studio

    Card Studio

    41
  • Form

    Form

    136