KQ-002 · TRACE/INPUT
Trace Input
Focus draws its own boundary — a stroke traces the field's perimeter, the label glides to an overline, and errors annotate themselves with a dimension line.
KQ-002 · TRACE/INPUT
Install
One command — the source lands in your repo. Or copy it from the Code tab.
$ pnpm dlx shadcn@latest add @kinetiq/trace-input
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| label | string | — | Field label — rests as placeholder, floats to overline when focused or filled. |
| description / error | string | — | Helper and error lines below the field, chained into aria-describedby. Errors nudge the field and set aria-invalid. |
| prefix / suffix | ReactNode | — | Leading and trailing slots inside the field. |
| …input props | Omit<InputProps, "prefix"> | — | Standard input passthrough; controlled and uncontrolled both work. |