Select

Classes Information

ClassNameDescription
selectSelect base class
select-roundedSet full rounded
select-blockMake select takes full width
select-smSet small size
select-lgSet large size
select-primarySet primary color
select-secondarySet secondary color
select-successSet success color
select-errorSet error color
select-warningSet warning color
select-ghost-primaryBorder hover primary
select-ghost-secondaryBorder hover secondary
select-ghost-successBorder hover success
select-ghost-errorBorder hover error
select-ghost-warningBorder hover warning

Basic Usage

Example Code

html
<select class="select">
  <option>Option 1</option>
  <option>Option 2</option>
  <option>Option 3</option>
</select>

Rounded

Example Code

html
<select class="select select-rounded">
    <option>Option 1</option>
    <option>Option 2</option>
    <option>Option 3</option>
</select>

Block

Example Code

html
<select class="select select-block">
  <option>Option 1</option>
  <option>Option 2</option>
  <option>Option 3</option>
</select>

Sizes

Example Code

html
<select class="select select-sm">
  <option>Option 1</option>
  <option>Option 2</option>
  <option>Option 3</option>
</select>
<select class="select">
  <option>Option 1</option>
  <option>Option 2</option>
  <option>Option 3</option>
</select>
<select class="select select-lg">
  <option>Option 1</option>
  <option>Option 2</option>
  <option>Option 3</option>
</select>

Colors

Example Code

html
<select class="select">
  <option>Option 1</option>
  <option>Option 2</option>
  <option>Option 3</option>
</select>
<select class="select select-primary">
  <option>Option 1</option>
  <option>Option 2</option>
  <option>Option 3</option>
</select>
<select class="select select-secondary">
  <option>Option 1</option>
  <option>Option 2</option>
  <option>Option 3</option>
</select>
<select class="select select-success">
  <option>Option 1</option>
  <option>Option 2</option>
  <option>Option 3</option>
</select>
<select class="select select-error">
  <option>Option 1</option>
  <option>Option 2</option>
  <option>Option 3</option>
</select>
<select class="select select-warning">
  <option>Option 1</option>
  <option>Option 2</option>
  <option>Option 3</option>
</select>

Ghost

Example Code

html
<select class="select select-ghost-primary">
  <option>Option 1</option>
  <option>Option 2</option>
  <option>Option 3</option>
</select>
<select class="select select-ghost-secondary">
  <option>Option 1</option>
  <option>Option 2</option>
  <option>Option 3</option>
</select>
<select class="select select-ghost-success">
  <option>Option 1</option>
  <option>Option 2</option>
  <option>Option 3</option>
</select>
<select class="select select-ghost-warning">
  <option>Option 1</option>
  <option>Option 2</option>
  <option>Option 3</option>
</select>
<select class="select select-ghost-error">
  <option>Option 1</option>
  <option>Option 2</option>
  <option>Option 3</option>
</select>

Disabled

Example Code

html
<select class="select" disabled>
    <option>Option 1</option>
    <option>Option 2</option>
    <option>Option 3</option>
</select>