Components
518 components in 50 categories. Every one installs with the shadcn CLI.
Inputs 18
Text fields, including masked and formatted ones.
- Masked InputA text field that formats the value as you type: card numbers, IBANs, phones, amounts, dates, or your own pattern. A guide shows what is left to type.
- Auto Scale InputA large amount field. The text gets smaller as you type, so the whole value stays in view. A number mask formats it and gives you the raw number.
- Phone FieldA field for a phone number and its country. Pick the country from a list with flags and search, and the number formats as you type.
- InputA field for one line of text, such as a name or an email address. It comes in the 3 sizes of Button, with invalid, disabled, and read-only states.
- Input GroupOne frame around an input or a text area and the parts next to it: icons, text, key hints, and buttons.
- Search FieldA search field with a key to focus it (/ or ⌘K), a clear button, and a spinner while results load. Escape clears it, and it waits for a pause in typing.
- Expanding SearchA round search button that grows into a search field when you press it. It closes again when the field is empty and you move away.
- TextareaA field for text on many lines, such as a message. It grows with the text from 64px to 240px, then scrolls.
- EditableText that turns into a field when you press it, such as a page title or a table cell. Enter or a click outside saves it, and Escape undoes it.
- Currency InputA field for an amount of money in one currency. It puts the symbol where the locale puts it, groups thousands, and keeps the cents of the currency.
- Number FieldA field for one number, with minus and plus buttons. Arrow keys step it, a drag on the label changes it, and it formats the number for the locale.
- IBAN InputA field for a bank account number (IBAN). It groups the characters in fours, shows the flag and country, and checks the length and check digits.
- Password FieldA password field with an eye button that shows or hides the text, and a hint when Caps Lock is on. It hides the password again on submit.
- IP Address InputA field for an IPv4 address. It takes only digits and dots, adds a dot after 3 digits, and checks that each of the 4 parts is 0 to 255.
- Input OTPA field for a one-time code, one character per slot, in groups. People can paste the code, or the phone fills it from a text message.
- Tags InputType a word and press Enter or a comma, or paste a list, and each word becomes a tag you can remove. It can also suggest tags.
- Mention InputA text field that turns @people and #channels into chips. A line shows who gets a notice, and the value keeps their ids, not their names.
- Number PadA large keypad for typing numbers on a touch screen. It sends digits, the decimal key of the locale, and delete to the field it drives.



































