Installation & Usage
Basic Usage
import { Select } from 'dotti'
<Select
options={selectOptions}
value={selected}
onChange={setSelected}
/>Examples
Basic Select
Standard dropdown with options.
Code
const [value, setValue] = useState('')
const options = [
{ value: 'react', label: 'React' },
{ value: 'vue', label: 'Vue' }
]
<Select
label="Framework"
placeholder="Choose..."
options={options}
value={value}
onChange={setValue}
/>Props
TypeScript Support
All components are fully typed with TypeScript. Check your IDE for prop suggestions and documentation.