docs(select): update item groups example to use hidden default option

This commit is contained in:
Eric Y Liu 2021-03-20 16:09:47 -07:00
commit 004dccbc58

View file

@ -36,7 +36,7 @@ components: ["Select", "SelectItem", "SelectItemGroup", "SelectSkeleton"]
### Item groups ### Item groups
<Select labelText="Carbon theme" selected="g10" > <Select labelText="Carbon theme" selected="0">
<SelectItem value="0" text="Select a theme" disabled hidden /> <SelectItem value="0" text="Select a theme" disabled hidden />
<SelectItemGroup label="Light theme"> <SelectItemGroup label="Light theme">
<SelectItem value="white" text="White" /> <SelectItem value="white" text="White" />