16 lines
360 B
TypeScript
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;
|