Skip to content
syntaqx

Components · Forms

Input

shadcn's Input with sm, default and lg sizes to match the Button. Inside a Field it wires itself up: id, description, error and disabled state.

Installation

npx shadcn@latest add https://www.syntaqx.com/r/input.json

Changes from shadcn

It installs over shadcn's Input and keeps its API, variants and data-slots, so code written for it keeps working. On top of that:

  • Sizes: sm (32px), default (36px) and lg (40px), matching the Button. A numeric size still sets the native attribute.
  • Inside a Field it picks up its id, description and state.

Examples

States