Starfield

Select

Status
Pre-release
The most popular choices across the community will get priority support.
1  'use client'
2  
3  import { Select } from '@jobilla/starfield'
4  
5  export function BasicDemo() {
6   return (
7   <Select
8   name="test"
9   options={[
10   { value: 'win10', label: 'Windows 10' },
11   { value: 'mac', label: 'MacOS' },
12   { value: 'linux', label: 'Linux' },
13   ]}
14   label="Select an operating system"
15   hint="The most popular choices across the community will get priority support."
16   defaultValue="win10"
17   onChange={(v) => console.log(v)}
18   />
19   )
20  }