40+ landing page components for ReactBrowse now

Primitives

Input

Text input field with label, hint, error state, and left/right slots for icons.

Installation

npm install @trinkui/react

Variants

States

We'll never share your email.

Props

PropTypeDefaultDescription
variant
"default" | "filled" | "ghost""default"Visual style variant of the input
size
"sm" | "md" | "lg""md"Size of the input
label
stringLabel text shown above the input
hint
stringHelper text shown below the input
error
stringError message shown below the input; also applies error styling
leftSlot
ReactNodeIcon or element rendered on the left side of the input
rightSlot
ReactNodeIcon or element rendered on the right side of the input
fullWidth
booleantrueStretch input to fill its container width
disabled
booleanDisable the input
className
stringAdditional CSS classes