Hygge-UI

Switch

Used to capture a binary state.

Source

Examples

Sizes

Pass the size prop to the Switch component to change the size of the switch.

States

Pass the disabled or invalid prop to the Switch component to change the visual state of the switch.

Label Position

Here's an example of how to change the label position to the left.

Color

Use the colorPalette prop to change the color of the rating.

gray

orange

teal

green

red