This component requires the FyskProvider. See Quick Start →
Preview
Installation
Usage
Examples
Default
Standard single-item selection dropdown.
Multi Selection
Enables selecting multiple values with built-in tag display and removal.
Features
Unified Selection: A single set of components that intuitively switches between
singleandmultiplemodes.Animated Chips: Multi-select mode features sleek, animated selection chips with individual removal and overflow handling.
Status Integration: Built-in support for
loading,success,errorstates with matching icons and color systems.Premium Aesthetics: Includes a modern
glassvariant and smooth micro-animations using Framer Motion.
Props
Select
| Prop | Type | Default | Description |
|---|---|---|---|
selection | "single" | "multiple" | "single" | The selection mode of the component. |
value | string | - | Controlled value for single selection mode. |
defaultValue | string | - | Initial value for single selection mode. |
onValueChange | (value: string) => void | - | Callback when the value changes in single mode. |
values | string[] | - | Controlled values for multiple selection mode. |
defaultValues | string[] | - | Initial values for multiple selection mode. |
onValuesChange | (values: string[]) => void | - | Callback when values change in multiple mode. |
maxDisplayItems | number | 1 | Max number of tags to show in the trigger before "+X more". |
disabled | boolean | false | Disables the entire component. |
open | boolean | - | Controlled open state of the dropdown. |
defaultOpen | boolean | false | Initial open state. |
onOpenChange | (open: boolean) => void | - | Callback when the open state changes. |
SelectTrigger
| Prop | Type | Default | Description |
|---|---|---|---|
variant | "default" | "outline" | "ghost" | "glass" | "destructive" | "success" | "warning" | "info" | "default" | Visual style of the trigger. |
size | "xs" | "sm" | "md" | "lg" | "xl" | "md" | Height of the trigger. |
state | "idle" | "loading" | "success" | "error" | "idle" | Overrides the variant styling and shows appropriate status icons. |
All other components (
SelectContent,SelectItem,SelectGroup, etc.) accept the standard Radix UI Select attributes.