import { forwardRef, type ComponentProps } from "react"; import { cn } from "@/lib/utils"; type ToggleButtonProps = { checked: boolean; disabled?: boolean; onChange: (checked: boolean) => void; ariaLabel?: string; label: string; } & Pick, "id" | "aria-describedby" | "aria-invalid">; export const ToggleButton = forwardRef(function ToggleButton({ checked, disabled, onChange, ariaLabel, label, ...accessibility }, ref) { return ( ); });