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

Location

Used to personalize nearby actions.

States

Location

Used to personalize nearby actions.

Filled

Used to personalize nearby actions.

Error

Enter at least 3 characters.

Disabled

Location is locked for this step.

With Toggle

Notifications

Enable push updates for new activity.

With Avatar

Assigned to

Tag the owner of this action.

Assigned to

Tag the owner of this action.

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.