Hextech UI

Input

Live example

Input

Installation

Terminal
npx shadcn@latest add https://hextech-ui.vercel.app/r/input.json

API reference

These are the main Input options. See the exported TypeScript types for inherited native or primitive props.

PropTypeDefault
sizesmall | medium | largemedium
typenative input typetext

Labels and state

Associate a visible label with id, or compose Input inside Field. Use value with onChange for controlled editing, or defaultValue for uncontrolled editing. Keep a controlled text value a string throughout its lifetime. See Forms for validation.