@tuv-indo/toggle
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

tuv toggle

tuv toggle is a strict and customizable toggle component for web development projects, designed for simplicity and adherence to strict design guidelines.

Screenshots

App Screenshot

Package instalation

Instal package using pnpm

  pnpm add @tuv/toggle

Instal package using yarn

  yarn add @tuv/toggle

Instal package using npm

  npm i @tuv/toggle

Usage/Examples

import React from "react";
import {Toggle} from "@tuv/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 @tuv/toggle

Props that you can pass to <Toggle {...props} />

| Prop Name | Value | required | | :-------- | :------------------------ | :------- | ----- | | size | "xs" / "sm" / "md" / "lg" | "none" | false |

Readme

Keywords

none

Package Sidebar

Install

npm i @tuv-indo/toggle

Weekly Downloads

78

Version

0.0.2

License

ISC

Unpacked Size

42.9 kB

Total Files

7

Last publish

Collaborators

  • prawitohudoro
  • dani_ganteng
  • tuvindo