Skip to content

Quill docs

Select

A native labelled select control styled with Quill tokens and inherited form semantics.

Preview#

This preview is server-rendered from the real qquill-design builder; the page ships the component CSS that builder returns, so the docs cannot drift from the crate API.

Design-system contract#

  • BUILT: uses the native `<select>` element; required/disabled are inherited from qquill-ui.
  • BUILT: selected and disabled options render as real option attributes.
  • Prefer Select for simple lists; use Combobox when filtering/typeahead is needed.

Code#

Construct the component with its builder:

Select::new("region", "Region", vec![
    SelectOption::new("eu", "Europe"),
    SelectOption::new("us", "United States"),
])
.selected(0)
.render()