Skip to main content
  1. Docs
  2. Components
  3. Forms

Select

One option, or several, from up to about fifteen: a field that opens its list below.

Import
@qeetrix/react
Status
StableSince 0.0.2
Renders
<button> + listServer-rendered
Tested
WCAG 2.2 AAaxe on every pull request

01

Playground

Every prop, live, and the code it takes.

billing-cycle.tsx
import { Field, Select } from "@qeetrix/react";

const cycles = [
  { value: "monthly", label: "Monthly" },
  { value: "quarterly", label: "Quarterly" },
  { value: "yearly", label: "Yearly" },
];

<Field label="Billing cycle">
  <Select items={cycles} placeholder="e.g. Monthly" />
</Field>

02

In a field

One of up to about fifteen. Field labels it; the chosen option carries the Ember check.

03

Grouped

items in groups, each with its label; an option can be shown but not chosen.

04

Several

multiple: the trigger lists the chosen labels.

05

Controlled

value and onValueChange: the page follows the choice.

Billed once a year, two months free.

06

Invalid and disabled

An error from its Field; disabled from its own prop.

Choose how often to bill.
Next — SelectUsage