Controls
Control select
a choice from a longer list · the browser’s own select
function ControlSelectDemo() { const [blend, setBlend] = React.useState('multiply'); return ( <ControlRow className={narrow} label="Blend mode" htmlFor="demo-blend"> <ControlSelect id="demo-blend" label="Blend mode" value={blend} onChange={setBlend} options={['normal', 'multiply', 'screen', 'overlay', 'darken', 'lighten'].map((v) => ({ value: v, label: v[0].toUpperCase() + v.slice(1) }))} /> </ControlRow> );}API
<ControlSelect label value options onChange id? />Get it
Already in every copy of the web kit:
import { ControlSelect } from '@/components/controls/select';Details
- Exports
ControlSelect- Packages
- cn@^0.5.2, lucide-react@^1.52.0
- Also searched as
- dropdown, menu, enum
- Registry JSON
- /r/web/control-select.json
Agents: the whole registry is at /llms.txt.