Props
options: SelectOption[]Available choices; each option has a value and label.
value?: stringCurrently selected option value.
onChange?: (value: string) => voidCalled when the selected value changes.
placeholder?: stringFallback text shown when no value is selected.
disabled?: booleanDisables the trigger and selection list.
className?: stringOptional class name for the trigger element.
Example
Select.tsx
import { useState } from 'react';
import { Select } from '@meteorack/sdk-react';
const options = [
{ value: 'daily', label: 'Daily' },
{ value: 'weekly', label: 'Weekly' },
{ value: 'monthly', label: 'Monthly' },
];
export function ReportScheduleField() {
const [schedule, setSchedule] = useState('weekly');
return (
<Select
options={options}
value={schedule}
onChange={setSchedule}
placeholder="Select schedule"
/>
);
}