- Home - Components - Select # Select Displays a list of options for the user to pick from—triggered by a button. ## Types ``` interface SelectTriggerProps extends ComponentProps, VariantProps { state?: "default" | "disabled" | "error"; size?: "sm" | "md" | "lg"; font?: "standard" | "mono"; align?: "left" | "center" | "right"; } interface SelectItemProps extends ComponentProps { prefix?: ReactNode; suffix?: ReactNode; } // Other select components use Radix primitives: // SelectRoot, SelectGroup, SelectValue, SelectContent, // SelectLabel, SelectSeparator - all extend Radix component props ``` ## In Toolbar ``` ``` ## Props ### Select Prop Type Default Description font 'standard' | 'mono' 'mono' Font family applied to trigger and items align 'left' | 'center' | 'right' 'left' Text alignment applied to trigger and items ...Radix props ComponentProps - All Radix Select root props ### SelectTrigger Prop Type Default Description size 'sm' | 'md' | 'lg' 'md' Trigger size state 'default' | 'error' 'default' Visual state ...Radix props ComponentProps - All Radix trigger props ### SelectContent Prop Type Default Description position 'item-aligned' | 'popper' 'item-aligned' Positioning strategy ...Radix props ComponentProps - All Radix content props ### SelectItem Prop Type Default Description prefix ReactNode - Element rendered before the label suffix ReactNode - Element rendered after the label ...Radix props ComponentProps - All Radix item props ### SelectLabel, SelectGroup, SelectSeparator, SelectScrollUpButton, SelectScrollDownButton, SelectValue Pass-through wrappers for corresponding Radix components. ## Usage ``` ``` ## State ``` ``` ## Sides Left Top Bottom Right ```

Left

``` ## Font Styles Standard Font Mono Font ``` {/* Standard font */} {/* Monospace font (default) */} ``` ## Text Alignment Left Aligned Center Aligned Right Aligned ``` {/* Left aligned (default) */} {/* Center aligned */} {/* Right aligned */} ``` ## Error ``` ```