Toggle

Toggle component, A two-state button that can be either on or off.

Read more Read less

Example:

<.toggle value="true" size="sm" variant="outline">Bold</.toggle>
<.toggle id="toggle-single-default-toggle">
  B
</.toggle>
<.toggle id="toggle-single-toggle-pressed" value>
  B
</.toggle>
<.toggle disabled id="toggle-single-toggle-disabled">
  B
</.toggle>
<.toggle id="toggle-variant-and-size-variant-outline" variant="outline">
  Outline
</.toggle>
<.toggle id="toggle-variant-and-size-size-small" size="sm">
  Small
</.toggle>
<.toggle id="toggle-variant-and-size-size-large" size="lg">
  Large
</.toggle>