Back to Daisyui

Select

skills/daisyui/components/select.md

5.6.6590 B
Original Source

select

Select is used to pick a value from a list of options

select docs

Class names

  • component: select
  • style: select-ghost
  • color: select-neutral, select-primary, select-secondary, select-accent, select-info, select-success, select-warning, select-error
  • size: select-xs, select-sm, select-md, select-lg, select-xl

Syntax

html
<select class="select {MODIFIER}">
  <option>Option</option>
</select>

Rules

  • {MODIFIER} is optional and can have one of each style/color/size class names