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

    22
  • Matte Meter Slider

    Matte Meter Slider

    16
  • Commands Menu

    Commands Menu

    15
  • Matte Opacity Slider

    Matte Opacity Slider

    13
  • Undo Feedback

    Undo Feedback

    9

More in Forms

View all
  • Premium Auth

    Premium Auth

    525
  • Contact Card

    Contact Card

    1K
  • Login 2

    Login 2

    8
  • Card Studio

    Card Studio

    41
  • Form

    Form

    16
  • Book A Demo 1

    Book A Demo 1

    74
  • HeroUI Field Error

    HeroUI Field Error

    10
  • Book A Demo 3

    Book A Demo 3

    90