value
Description
Optional. Sets the value of a rich selectUsage
value?: string | number;
Example
const dataset = [
{ id: 1, label: "First option" },
{ id: 2, label: "Second option" },
{ id: 3, label: "Third option" }
];
export default function App() {
return <RichSelect options={dataset} value={1} />;
}
Related article: Setting the value
Related sample: RichSelect