input

Input

Lets the user enter a single line of text, joining a Field.

States: Default, Focus, Disabled, Invalid

Parts

PartFileDoes
InputInput.vueLets the user enter a single line of text.

Styling

PartRecipe
Inputinput

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>.

PropTypeDefault
defaultValuestring | number—
modelValuestring | number—
classClassValue—
size'md' | 'sm'—
EventPayload
update:modelValuepayload: string | number
Data attributeValues
data-size'md' | 'sm'
Recipe inputSets
base: input 19 properties · 13 inherited
size: sm 1 property
disabledshared state 1 property
Example
State