ThiloDesign System
DV

Input

shadcn/ui

Single-line text field. Use for search, forms, and inline editing.

@/components/ui/input

Sizes

SizeHeightPreviewUsage
default36pxForms, dialogs, filters
md32pxDetail panels, inline-edit rows, medium forms
sm28pxToolbars, search bars, compact forms
xs24pxTable inline edit, dense cell input

States

StatePreviewNote
Defaultbg-background, border-input
Hoverno visual change — cursor signals interactivity
Focusborder-ring, ring-ring/50
With valueControlled or uncontrolled
Disabledopacity-50, cursor-not-allowed
Subtlebg-muted for inputs inside panels/toolbars
Errorborder-destructive on validation error

With icons

absolute + left-2.5, pointer-events-none on icon

With label + error

Enter a valid email address

In context — toolbar

Table
Toolbar search uses bg-muted border-transparent — blends into the toolbar background

Props

PropTypeDescription
placeholderstringHint text when input is empty
disabledbooleanPrevents interaction, reduces opacity
typestringHTML input type: text, email, password, number, search…
valuestringControlled value
onChangefunctionChange handler for controlled inputs
classNamestringAdditional Tailwind classes

On this page