3.15.1 #components.switch.01 Switch sizes
Use our handy .size-
classes to change size of the switch.
Examples
Default styling
.size-xs
10px
.size-s
11px
.size-m
14px
.size-l
16px
.size-xl
18px
Markup
<nav class="switch switch--color-red-light [modifier class] fg-gray-dark bg-gray-light">
<a class="switch__item selected">first option</a>
<a class="switch__item">second option</a>
<a class="switch__item">third option</a>
</nav>
Source:
src/css/components/switch.less
, line 166