Docs
Components
Form Elements

Form Elements

Input Fields

Input

File Inputs

Input

Props

Prop NameTypeRequiredDescription
labelstringYesLabel text for the input field
placeholderstringYesPlaceholder text shown when input is empty
typestringNoHTML input type (text, password, file, email, etc.)
fileStyleVariantstyle1, style2NoStyle variant for file inputs
activebooleanNoWhether the input is in active state
disabledbooleanNoWhether the input is disabled
classNamestringNoAdditional CSS classes to apply

Toggle switch input

Input

Props

Prop NameTypeDefaultDescription
backgroundSizesm, default"default"Size of the switch background
withIconbooleanfalseWhether to show an icon inside the switch
backgroundlight, dark"light"Background theme of the switch
classNamestringundefinedAdditional CSS classes to apply
checkedbooleanfalseWhether the switch is in checked state
onChange(checked: boolean) => voidundefinedCallback function when switch state changes

Time and date

Input

Textarea Fields

Input

Props

Prop NameTypeRequiredDescription
labelstringYesLabel text for the textarea
placeholderstringYesPlaceholder text shown when textarea is empty
activebooleanNoWhether the textarea is in active state
disabledbooleanNoWhether the textarea is disabled
classNamestringNoAdditional CSS classes for the wrapper
rowsnumberNoNumber of visible text lines
iconReact.ReactNodeNoOptional icon component to display within the textarea.

Checkbox and radio

Input

Props

Checkbox:

Prop NameTypeRequiredDescription
labelstringNoLabel text for the checkbox
withIconcheck, xNoType of icon to display in checkbox
classNamestringNoAdditional CSS classes to apply
minimalbooleanNoChanges appearance
onChange(e) => voidNoHandler function called when checkbox state changes
radiusdefault, mdNoControls the border radius of the checkbox

Radio Input:

Prop NameTypeRequiredDescription
labelstringNoLabel text for the radio input
variantdefault, circleNoVisual style variant of the radio input
namestringNoName attribute for the radio input group
classNamestringNoAdditional CSS classes to apply

Select input

Input

Props

Prop NameTypeRequiredDescription
labelstringYesLabel text for the select input
itemsArray<{ value: string; label: string }>YesArray of options for the select input
prefixIconReact.ReactNodeNoIcon to display before the select input
classNamestringNoAdditional CSS classes to apply
defaultValuestringNo*Initial selected value (*Required if placeholder not provided)
placeholderstringNo*Placeholder text (*Required if defaultValue not provided)