@aveonline/ui-react
Version:
Home base for Aveonline design system - ecosystem react
24 lines (23 loc) • 484 B
TypeScript
interface ISwitch {
/**
* Whether or not the switch is checked.
*/
isSelected: boolean;
/**
* Disabled switch.
*/
isDisabled?: boolean;
/**
* The name used when using this component inside a form.
*/
name?: string;
/**
* The function to call when the switch is toggled.
*/
onChange(checked: boolean): void;
/**
* Frozen state current
*/
hasFrozenState?: boolean;
}
export type { ISwitch };