Skip to content
Forms

TagForge

A tag input at the anvil. Type a word and strike: the hammer lands, sparks fly and it comes off as a glowing steel tag that cools on its hook and swings to rest. Enter or comma forges, Backspace takes the last one down.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
labelstring"Tags"Read out by screen readers.
namestring-Form field name. Each tag is sent as its own field.
defaultValuestring[][]Tags on the rack at start.
maxnumber6Most tags the rack takes.
placeholderstring"Type a word"Shown on the empty bar.
onChange(tags: string[]) => void-Called with all tags on every change.
classNamestring"w-full max-w-lg"Set the width here. Everything scales with it.