Back to library

Select

Choose one option from a list.

Recommended API

Property or elementTypeExample initial valueDescription
nameForm field namedeliveryName the selected value for form submission.
<option value>Option and valuestandard, express, pickupSet the submitted value for each visible label.

States

StateTriggerResult
openedActivate the select control.The system opens its option list.
selectedChoose an option.The field shows the selected label and holds its value.

Svelte implementation guidance

Choose one delivery option with a native select. Keyboard navigation and popup presentation follow the browser.

Use the supplied svelte example as a starting point. Preserve the native control semantics, labels, keyboard behavior and project conventions. Verify with keyboard and the target browser.

CSS variables

VariableTypeDefaultDescription
--q-textcolor #28302aMain text and foreground color.
--q-mutedcolor #70776fColor for secondary text.
--q-font-sizelength 13pxBase size for the component text.
--q-accentcolor #344e41Accent for active controls, indicators and focus.
--q-surfacecolor #ffffffSurface for controls and cards.
--q-bordercolor #dce0d8Color for outlines and dividers.
--q-radiuslength 10pxBase corner radius.
--q-gaplength calc(var(--q-space) * 2)Space between items, based on the spacing unit.
--q-control-pxlength calc(var(--q-space) * 4)Horizontal padding for controls.
--q-control-pylength calc(var(--q-space) * 2.5)Vertical padding for controls.
--q-spacelength 4pxBase unit for gaps and padding.