Malay Patel

Tag Input

Component 1

About

A field that turns typed or pasted text into chips that pop in and shrink out, with Backspace to select and remove, arrow keys to move between chips and a nudge for duplicates. Free component from uibrik (uibrik.com).

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

Code

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

Usage.tsx

"use client";

import { TagInput } from "@/components/ui/tag-input";

const props = {
  placeholder: "Add a tag",
  max: 8,
  duration: 0.35,
  ignoreCase: true,
  disabled: false,
};

export default function Demo() {
  return (
    <div className="flex h-screen w-full items-center justify-center px-4">
      <TagInput {...props} defaultValue={["Design", "Motion", "React"]} className="max-w-md" />
    </div>
  );
}

Dependencies

More by Malay Patel

View all
  • Halftone Horizon

    Halftone Horizon

    52
  • Halftone

    Halftone

    46
  • Fold Toolbar

    Fold Toolbar

    31
  • Balloon Button

    Balloon Button

    31
  • Ascii Field

    Ascii Field

    12
  • Oil Slick

    Oil Slick

    11
  • Hold To Confirm

    Hold To Confirm

    5
  • Copy Button

    Copy Button

    4