UNPKG

@rws-aoa/react-library

Version:

RWS AOA Design System

26 lines 837 B
import { SwitchProps as MUISwitchButtonProps } from '@mui/material'; export interface AoaSwitchButtonProps extends MUISwitchButtonProps { /** * Whether this switch button is checked */ readonly checked: boolean; /** * Data-qa tag for E2E test purposes */ readonly 'data-qa'?: string; /** * The label that is shown after the switch button */ readonly label: string; } /** * Constructs a switch button using pre-defined Rijks styling * * @param props - Props to pass to the switch button * @example * ```jsx * <AoaSwitchButton label="Demo switch button" checked={true} onChange={handleChange} />} /> * ``` */ export declare function AoaSwitchButton({ label, ...props }: AoaSwitchButtonProps): import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=SwitchButton.d.ts.map