import React from "react"; export interface ToggleProps { /** Whether the toggle is checked */ checked: boolean; /** Callback when the toggle changes */ onChange: (checked: boolean) => void; /** Label displayed above the toggle */ label: string; /** Optional description displayed below the label */ description?: string; /** Optional additional class name */ className?: string; /** Whether the toggle is disabled */ disabled?: boolean; } /** * A reusable toggle switch component with label and description. */ export function Toggle({ checked, onChange, label, description, className = "", disabled = false, }: ToggleProps): React.ReactElement { return (
{description}
)}