Skip to content

Select

The Select component provides a dropdown menu for choosing a single option from a list. It is commonly used in forms, filters, and settings where users need to make a selection without typing.

  • Single selection: Only one option can be selected at a time.
  • Accessible: Uses native <select> behavior for keyboard and screen reader support.
  • Customizable styling: Supports variants and custom CSS classes.
  • Disabled state: Can be disabled to prevent user interaction.
  • Reactive value binding: Works with reactive state for dynamic updates.
v2








PropTypeDefaultDescription
valuestringCurrent selected value; supports reactive binding.
variantstringStyle variant of the select (e.g., outlined, filled).
disabledbooleanfalseDisables the select when true.
classstringOptional CSS classes for custom styling.
stylestringInline styles for layout or visual customization.
onchangefunctionCallback triggered when the selected value changes.
  • Keep option labels short and descriptive.
  • Use variants consistently for UI coherence.
  • Bind value for reactive updates in forms or dynamic UI.
  • Disable the select when input is not relevant or temporarily unavailable.
  • Ensure accessible labeling with <label> or aria-label.