Skip to main content

Variable: SelectValue

@arolariu/components


@arolariu/components / SelectValue

Variable: SelectValue

const SelectValue: ForwardRefExoticComponent<Omit<SelectValueProps, "ref"> & RefAttributes<HTMLSpanElement>> = BaseSelect.Value

Defined in: components/ui/select.tsx:133

Displays the currently selected option inside the trigger.

Remarks

  • Renders no DOM element by default beyond the underlying value slot
  • Built on Base UI Select
  • Supports composition through surrounding select trigger rendering
  • Styling via CSS Modules with --ac-* custom properties through descendant components

Example

<SelectValue placeholder="Select an option" />

See

Base UI Documentation

// was this page useful?