Select

A dropdown select component for choosing a single option from a predefined list of values.

Installation

npx chilli@latest add select

Default

With Icons

Avatar

Borderless

API Reference

Select

PropTypeDefaultDescription
options{ value: string; label: string; icon?: ReactNode }[]Array of options to display.
valuestringControlled selected value.
onChange(value: string) => voidCallback when the selected value changes.
placeholderstring"Select..."Placeholder text when no option is selected.
variant"default" | "avatar" | "borderless""default"Visual style of the trigger.
size"sm" | "md""md"Size of the select trigger.
avatarSrcstringAvatar image source for the avatar variant.