Switch Component

Installation

yarn add @atlrdsgn/kit

Usage

import { Switch } from '@/components/ui/switch';
 
<Switch>
  <Switch.Toggle />
</Switch>;

Common Example

we will add CodeSandbox here

Properties

NameTypeDefaultDescription
widthstringsmThe object for fontSize.
alignstringleftleft, center, right
borderbooleanfalseAn optional border around the component
flushbooleanfalsea no padding option