placeholder
Description
Optional. Sets the text of the input's placeholderUsage
placeholder?: string;
Example
const dataset = [
{ id: 1, label: "First option" },
{ id: 2, label: "Second option" },
{ id: 3, label: "Third option" }
];
function Example() {
return <Combo options={dataset} placeholder="Select an option" />;
}
Details
For a placeholder to be visible in the input, a combo should be initialized without the initial value specified.
Related article: Adding a placeholder for the input
Related sample: Combo