Switches

The Switch component provides users the ability to choose between two distinct values. These are very similiar to a toggle, or on/off switch, though aesthetically different than a checkbox.

API

Examples

Below are some simple and complex examples.

Groups

You can combine switches into groups.

Colors

You can change the colors of the switch and the labels.

States

Here are some different states the switch can be in.

Dense

Here are some different states the switch can be in.

Inset

Here are some different states the switch can be in.

Ready For More?

Continue to learn more about svelte materialify with content selected by the creator.



Edit This Page on GitHub Last Updated: 2021-02-15