Tag Chips

Tags
    No dependencies
    Code format

    Install with shadcn

    Needs a free account token. Get a token

    npx shadcn@latest add @movin/input-chips

    About this component

    A tag field. Press Enter or type a comma and the words you typed turn into a chip right where they were while the cursor glides along; Backspace on an empty field melts the last chip back into editable text. Repeats nudge the existing chip instead of doubling it.

    Triggers

    • Focus
    • State change
    • Spring
    • Morph

    Techniques

    • Spring
    • State machine
    • Keyframes

    Difficulty

    Advanced

    Accessibility

    Keyboard and screen readers

    Chips are a labelled list and each has a real "Remove <tag>" button; the input is labelled "Add a tag". A polite live region announces each add, removal and duplicate.

    Reduced motion

    Everything happens without animation.

    Use it in anything you build, commercial and client work included. Licence

    More inputs

    See all
    Code SlotsGet code
    Did the build pass?
    All green. Shipping now
    ComposerGet code
    Drop LettersGet code
    Ghost CompleteGet code