UNPKG

react-components-design-system

Version:

React UI component for design system FIS ES PB5

20 lines (19 loc) 733 B
import "./Toggle.scss"; export interface ToggleProps { /**Use to custom style the component*/ className?: string; /** Label to display next to the toggle */ label?: string; /** Initial state of the toggle */ initialState?: boolean; /** Disable the toggle */ isDisabled?: boolean; /** Size of the toggle: large or medium */ size?: "large" | "medium"; /** Callback when the toggle state changes */ onToggle?: (state: boolean) => void; /** Reverse the direction of toggle content */ reverse?: boolean; } declare function Toggle({ className, label, initialState, isDisabled, reverse, size, onToggle, }: ToggleProps): import("react/jsx-runtime").JSX.Element; export default Toggle;