hextastudio/ui needs your support to stay running 🫶 Help us
Toggle
Toggle switch component with enabled and disabled state.
Preview
Disabled
Installation
tsx
import { useState } from "react";
export const Home = () => {
const [isEnabled, setIsEnabled] = useState(false);
const handleToggle = (value) => {
setIsEnabled(value);
};
return (
Props Information
Prop Name
Prop Type
Default Value
Description
Prop Name | Prop Type | Default Value | Description |
---|