@hudoro/toggle
v0.0.1-beta.5
Published
toggle component for Hudoro UI
Downloads
1,467
Readme
Hudoro toggle
Hudoro toggle is a strict and customizable toggle component for web development projects, designed for simplicity and adherence to strict design guidelines.
Screenshots
Package instalation
Instal package using pnpm
pnpm add @hudoro/toggle
Instal package using yarn
yarn add @hudoro/toggle
Instal package using npm
npm i @hudoro/toggle
Usage/Examples
import React from "react";
import {Toggle} from "@hudoro/toggle";
import ReactDOM from "react-dom/client";
const App = () => (
<div>
<Toggle size="lg" />
<Toggle size="lg" />
</div>
);
ReactDOM.createRoot(document.getElementById("app")!).render(<App />);
Props @hudoro/toggle
Props that you can pass to <Toggle {...props} />
| Prop Name | Value | required | | :-------- | :------------------------ | :------- | ----- | | size | "xs" / "sm" / "md" / "lg" | "none" | false |