InputActionField

A glass-style input field with integrated label, optional icons, avatar, and toggle for action-oriented forms.

Installation

npx chilli@latest add action-input

Default

Label

helper text

States

Placeholder

helper text

Filled

helper text

Error

helper text

Disabled

helper text

With Toggle

Label

helper text

With Avatar

Label

helper text

Label

helper text

API Reference

ActionInput

PropTypeDefaultDescription
labelstringLabel displayed inside the input container.
helperTextstringHelper text displayed below the input.
errorstringError message. Applies error styling.
leftIconReactNodeIcon displayed on the left side.
rightIconReactNodeChevronRightIcon displayed on the right side.
showAvatarbooleanfalseWhether to show an avatar.
avatarSrcstringAvatar image source.
showTogglebooleanfalseWhether to show a toggle switch.
toggleCheckedbooleanfalseControlled toggle state.
onToggleChange(checked: boolean) => voidCallback when the toggle changes.
disabledbooleanfalseWhether the input is disabled.