Files
ersatztv/design-system/components/forms/Switch.d.ts
T
2026-07-02 07:37:00 +02:00

16 lines
360 B
TypeScript

import * as React from "react";
export interface SwitchProps {
checked?: boolean;
onChange?: (next: boolean) => void;
label?: string;
disabled?: boolean;
size?: "sm" | "md";
style?: React.CSSProperties;
}
/**
* Boolean toggle — "Show disabled", "Enabled in EPG", filler visibility.
*/
export function Switch(props: SwitchProps): JSX.Element;