››input
Input
Lets the user enter a single line of text, joining a Field.
Parts
| Part | File | Does |
|---|---|---|
| Input | Input.vue | Lets the user enter a single line of text. |
Styling
All of Input’s styles live in input.json. New to styling in Frontic UI? How styling works →
Install
- npm packages
- @vueuse/core
- class-variance-authority
- reka-ui
API reference
Lets the user enter a single line of text. Renders a <input>.
Props 4
| Prop | Type | Default | |
|---|---|---|---|
| defaultValue | string | number | — | |
| |||
| modelValue | string | number | — | |
| |||
| class | ClassValue | — | |
| |||
| size | 'md' | 'sm' | — | |
| |||
Events 1
| Event | Payload | |
|---|---|---|
| update:modelValue | payload: string | number | |
| ||
Data attributes 1
| Data attribute | Values | |
|---|---|---|
| data-size | 'md' | 'sm' | |
| ||
Recipe input 3 groups
height spacing.102.5rem
paddingX spacing.00rem
paddingY spacing.10.25rem
width full
minWidth spacing.00rem
display :fileinline-flex
height spacing.92.25rem
opacity opacity.500.5
Input