- Accordion
- Action Bar
- Alert Dialog
- Alert
- Announcement
- Aspect Ratio
- Autocomplete
- Avatar
- Badge
- Bottom Navigation
- Breadcrumb
- Button Group
- Button
- Calendar
- Card
- Carousel
- Chart
- Checkbox
- Circular Progress
- Circular Slider
- Clipboard
- Collapsible
- Color Picker
- Combobox
- Command
- Context Menu
- Data List
- Date Picker
- Dialog
- Drawer
- Editable
- Field
- File Upload
- Float
- Floating Panel
- Frame
- Hint
- Hover Card
- Image Cropper
- Input Group
- Input OTP
- Input
- Item
- Kbd
- Link Overlay
- Listbox
- Marquee
- Menu
- Native Select
- Number Input
- Pagination
- Popover
- Progress
- Prose
- QR Code
- Radio Group
- Rating
- Resizable
- Scroll Area
- Segment Group
- Select
- Separator
- Sheet
- Sidebar
- Signature Pad
- Skeleton
- Skip Nav
- Slider
- Spinner
- Status
- Steps
- Switch
- Table
- Tabs
- Textarea
- Timer
- Toast
- Toggle Group
- Toggle Tooltip
- Toggle
- Tooltip
- Tour
- Tree View
Installation
pnpm dlx shadcn@latest add https://shark.vini.one/r/input.json
Usage
import { Input } from "@/components/ui/input";
<Input />
Sizes
Use the size prop to change the input height.
Small
Medium
Large
State
Disabled
Use the disabled prop to disable the input.
The field is currently disabled
Invalid
Use the invalid prop to mark the input as invalid.
Please enter a valid email address
Examples
Field
Use <Field />, <FieldLabel /> and <FieldDescription /> to create an input with a label and a description.
Choose a unique username for your account
Field Group
Use <FieldGroup /> to show multiple <Field /> blocks and to build forms.
We'll use this email to contact you
File
Use the type="file" prop to create a file input.
Choose a picture for your profile
For more advanced file upload functionality, use the <FileUpload /> component instead.
Inline
Use the orientation="horizontal" prop to create an inline input.
Grid
Required
Use the required prop to mark the input as required.
Use <FieldRequiredIndicator /> to add a required indicator to the label.
This field must be filled out..
Badge
Use <Badge /> in the label to highlight a recommended field.
Input Group
Use <InputGroup /> to create an input group.
Button Group
Use <ButtonGroup /> to create a button group.
API Reference
Input
Text input. Accepts all native input attributes.
| Prop | Type | Default |
|---|---|---|
size | sm | md | lg | md |
type | string | text |
className | string | - |
For a complete list of props, see the Ark UI documentation.