Documentation
Components
Switch

Switch

Variant

Default

Preview

Code

HTML

Code

JSX/TSX

Bordered

Preview

Code

HTML

Code

JSX/TSX

Ghost

Preview

Code

HTML

Code

JSX/TSX

Size

Preview

Code

HTML

Code

JSX/TSX

Shape

Default shape is circled. And accepts the following options:

  • square

Square

Preview

Code

HTML

Code

JSX/TSX

Disabled

Preview

Code

HTML

Code

JSX/TSX

Custom content

And you can customize the content of switch slider. Just add the data-content attribute on it.

Preview

Code

HTML

Code

JSX/TSX