toggle component for nero design system
npm install @nero-ui/toggleNero toggle is a strict and customizable toggle component for web development projects, designed for simplicity and adherence to strict design guidelines.
Instal package using pnpm
``bash`
pnpm add @nero-ui/toggle
Instal package using yarn
`bash`
yarn add @nero-ui/toggle
Instal package using npm
`bash`
npm i @nero-ui/toggle
`javascript
import React from "react";
import {Toggle} from "@nero-ui/toggle";
import ReactDOM from "react-dom/client";
const App = () => (
ReactDOM.createRoot(document.getElementById("app")!).render(
``
#### Props that you can pass to
| Prop Name | Value | required |
| :-------- | :------------------------ | :------- | ----- |
| size | "xs" / "sm" / "md" / "lg" | "none" | false |