[ Home ]
back

Select , shadcn/ui components例

id: 142, 2024-09-06

概要


関連


<Label htmlFor="framework">SelectItems</Label>
<Select>
  <SelectTrigger id="framework">
    <SelectValue placeholder="Select" />
  </SelectTrigger>
  <SelectContent position="popper">
    <SelectItem value="item_1">item_1</SelectItem>
    <SelectItem value="item_2">item_2</SelectItem>
    <SelectItem value="item_3">item_3</SelectItem>
  </SelectContent>
</Select>