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
labelstring—Label displayed inside the input container.
helperTextstring—Helper text displayed below the input.
errorstring—Error message. Applies error styling.
leftIconReactNode—Icon displayed on the left side.
rightIconReactNodeChevronRightIcon displayed on the right side.
showAvatarbooleanfalseWhether to show an avatar.
avatarSrcstring—Avatar image source.
showTogglebooleanfalseWhether to show a toggle switch.
toggleCheckedbooleanfalseControlled toggle state.
onToggleChange(checked: boolean) => void—Callback when the toggle changes.
disabledbooleanfalseWhether the input is disabled.