Toggle

Toggle can get props that will define the appearance and behavior of the component.

  • value - Required. The value of the toggle.
  • disabled - Optional. Whether the toggle should be disabled.
  • size - Optional. Defaults to SIZE.MEDIUM. Can be one of the sizes (SIZE) defined on the component.

On

Off

Disabled & On

Disabled & Off

Sizes

API

Props

NameDescriptionTypeDefault
valueboolean
disabledbooleanfalse
sizestringSIZE.MEDIUM

Events

NameDescription
change