input
Input
Lets the user enter a single line of text, joining a Field.
States: Default, Focus, Disabled, Invalid
Parts
| Part | File | Does |
|---|---|---|
| Input | Input.vue | Lets the user enter a single line of text. |
Styling
| Part | Recipe |
|---|---|
| Input | input |
Install
Writes 2 files into components/ui/input/. For agents, npx @frontic/ui docs input prints this reference as markdown; the MCP server serves the same.
- npm packages
- @vueuse/core
- class-variance-authority
- reka-ui
API reference
Input Input.vue
Lets the user enter a single line of text. Renders a <input>.
| Prop | Type | Default | |
|---|---|---|---|
| defaultValue | string | number | — | |
| modelValue | string | number | — | |
| class | ClassValue | — | |
| size | 'md' | 'sm' | — | |
| Event | Payload | |
|---|---|---|
| update:modelValue | payload: string | number | |
| Data attribute | Values | |
|---|---|---|
| data-size | 'md' | 'sm' | |
| Recipe input | Sets | |
|---|---|---|
| base: input | 19 properties · 13 inherited | |
| size: sm | 1 property | |
| disabledshared state | 1 property | |
Example