Input

Interactive documentation for the input component. Change props in the playground, inspect states, and copy the generated example.

last action:

Preview

Code

<Input
  v-model="value"
  placeholder="Email"
  class="w-[264px]"
  @action="handleAction"
/>

States

Common input states for empty, completed, disabled, and error values.

Empty

CAD

Completed

CAD

Disabled

CAD

Error

CAD

Error message

Examples

Common combinations used in forms and checkout flows.

Email with action button

Square with trailing text

CAD

Discount code

Measurement

mm

Props

This table matches the current InputProps interface.

PropTypeDefaultDescription
modelValuestring''Current input value used by v-model.
size'l' | 'xl' | 'responsive-l-xl''l'Controls height, padding, font size, icon size, and responsive layout styles.
squarebooleanfalseUses square right-side layout and adjusted border radius.
roundedbooleanfalseApplies fully rounded outer and inner corners.
placeholderstringundefinedFloating label text rendered above the input.
disabledbooleanfalseDisables the input and action button interaction.
trailingIconstringundefinedIcon rendered on the right side inside the input field.
trailingTextstringundefinedStatic trailing text rendered after the input value.
classstring'w-full'Additional classes applied to the root container.
errorstringundefinedDisplays error styles and renders an error message below the input.
requiredbooleanfalseDisplays required indicator inside the floating label.
showButtonbooleanfalseShows the action button on the right side of the input.
buttonIconstring''Custom icon rendered inside the action button.
buttonTextstring''Text rendered inside the action button.
clearOnActionbooleantrueClears the input value after the action event is emitted.