Switch

The Switch component is used as an alternative for the checkbox component.

The Switch component is used as an alternative for the Checkbox component. You can switch between enabled or disabled states.

Import#

import { Switch } from '@chakra-ui/react'

Usage#

Changing the size#

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

Changing the color palette#

Set the colorPalette prop to change the color of the Switch.

Proudly made inNigeria by Segun Adebayo

Deployed by Vercel