input

Input

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

Parts

PartFileDoes
InputInput.vueLets 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

Input.vue

Lets the user enter a single line of text. Renders a <input>.

Props 4

PropTypeDefault
defaultValuestring | number—
modelValuestring | number—
classClassValue—
size'md' | 'sm'—

Events 1

EventPayload
update:modelValuepayload: string | number

Data attributes 1

Data attributeValues
data-size'md' | 'sm'

Recipe input 3 groups

Input
State