Skip to content

Variants and sizes ​

Variants ​

Pick a look with data-fs-variant. All variants share the same list, keyboard behaviour and options.

Field (default) ​

Full width, the same height as a text input. Use it in forms.

html
<select name="category" data-flow-select>...</select>

Pill ​

Rounded and as wide as its content. Use it in filter bars above lists and tables.

html
<select name="source" aria-label="Source" data-flow-select data-fs-variant="pill">
  <option value="">All sources</option>
  <option>Website</option>
</select>

Ghost ​

No border and a soft background. Use it for toolbar menus such as "Group by" or "Sort by".

html
<select name="groupBy" aria-label="Group by" data-flow-select data-fs-variant="ghost">
  <option value="">Group by</option>
  <option>Source</option>
</select>

Pill and ghost without a visible label

Filter controls often have no visible label. Give them an aria-label so screen readers can name them.

Sizes ​

Add data-fs-size="sm" or data-fs-size="lg". Text, height, chips, icons and list rows scale together. Sizes work with every variant.

html
<select data-flow-select data-fs-size="sm">...</select>
<select data-flow-select data-fs-size="lg">...</select>

For any other size, set --fs-height and font-size yourself. See Theming.

Check mark position ​

The selected row shows a check mark at the start. Move it to the end with data-fs-check-position="end", or hide it with "none".

Released under the MIT License.