--- components: ["Select", "SelectItem", "SelectItemGroup", "SelectSkeleton"] --- `Select` provides a dropdown menu for selecting a single option from a list. It supports various states, sizes, and includes built-in validation and helper text. ## Default Create a basic select menu with `SelectItem` components. The first item's value is used as the default if `selected` is not set. ## Custom item text Use the `text` prop to customize the display text of each option. ## Initial selected value Set the initial selection using the `selected` prop. ## Reactive example The `selected` prop supports two-way binding for reactive updates. ## Helper text Add descriptive text below the select menu. ## Hidden label Visually hide the label while maintaining accessibility. ## Item groups Group related options using `SelectItemGroup` components. ## Small size Use the small size variant for compact layouts. ## Extra-large size Use the extra-large size variant for prominent selections. ## Inline variant Use the inline variant for horizontal layouts. ## Light variant Use the light variant for light backgrounds. ## Invalid state Show validation errors using the invalid state. ## Warning state Show warnings using the warning state. ## Disabled state Disable the select menu to prevent interaction. ## Skeleton Display a loading state using the skeleton variant. ## Skeleton (hidden label)