Skip to content
1 viewer
View
Component · Input

Select

cre8.primitive.select

Single-selection listbox with optional search.

Edit live
Category
Input
Slots
6
States
4
Writer
Shared

Preview

Live renderShared SSR + WASM writers
<Select
  default="L1-STARK"
  label="Execution Verification Tier"
  name="tier"
  options={[
    { label: "L0 — Signature Only", value: "L0-Signature" },
    { label: "L1 — Zero-Knowledge STARK Proof", value: "L1-STARK" },
    { label: "L2 — Full Multi-Party Replay", value: "L2-Replicated" }
  ]}
/>
Change this declaration and watch it render:open Select in the playground

Props

The inputs the shared writer reads. `data-*` and `aria-*` attributes pass through and are not listed.

PropTypeRequiredDefaultAlso written
bareboolOptional——
defaulttextOptional—defaultValue
descriptiontextOptional—helpText
disabledboolOptional——
errortextOptional—errorText
hiddenboolOptional——
invalidboolOptional——
labeltextOptional——
nametextOptional——
onChangetextOptional——
optionsjsonRequired——
requiredboolOptional——
sizenumberOptional——
13 rows

Anatomy

The named parts of the rendered markup. Recipes style these hooks, and every renderer keeps them stable.

SlotDOM class
root.primitive-select
label—
trigger—
value—
listbox—
option—
6 rows
Hydration markers
data-cre8-control

States and platforms

The states the contract publishes, the platforms it declares, and the style recipes that dress it.

States
openselectedactivedisabled
Platforms
webnativeruntime-node
Recipes
unstyledruntime-console

Renderers

Shared writer
Select renders through the one writer the server and the WASM DOM share, so both emit the same markup.

Every tag in the example above renders through a shared writer.

Declared adapters. A status is the manifest's declaration, not a measured parity result.

TargetRendererStatus
webreactexperimental
runtime-nodeview-nodeready
ssrhtml-form-controlready
terminalterminal-form-controlplanned
nativenative-adapterexperimental
5 rows

Accessibility

Trigger and listbox expose selected, active, expanded, labelled, and invalid states.

  • Keyboard users can open, move, choose, and dismiss options.
  • Selected and active options are exposed independently.
  • Help text and validation errors stay linked to the trigger through ids.