value
Description
Optional. Sets the value of a comboUsage
value?: string | number;
Default
An empty string - the value isn't selected
Example
const dataset = [
{ id: 1, label: "First option" },
{ id: 2, label: "Second option" },
{ id: 3, label: "Third option" },
];
function App() {
return <Combo options={dataset} value={1} />;
}
Related article: Setting the value
Related sample: Combo