Skip to content

Size Examples

DotSelect supports three built-in size variants: small, medium (default), and large.

Small

Medium (Default)

Large

Size Comparison

SizeAttributeMin HeightFont SizePadding
Smalldata-size="sm"32px0.8rem4px 8px
Mediumdata-size="md" (default)38px0.875rem6px 12px
Largedata-size="lg"46px1rem8px 16px

Multiple Select Sizes

Sizes also apply to multiple selects, adjusting the item badge size:

Searchable Select Sizes

The search input scales with the component size:

Bootstrap 5 Theme Sizes

When using the Bootstrap 5 theme, you can also use Bootstrap's native size classes:

TIP

When using the Bootstrap 5 theme, form-select-sm and form-select-lg classes take precedence over data-size. You can use either approach, but avoid mixing both on the same element.

MIT Licensed