@visa/nova-react
Version:
Visa Product Design System Nova React library
22 lines (21 loc) • 818 B
TypeScript
import { ElementType, ForwardedRef } from 'react';
export type SwitchProperties = {
/** @ignore */
children?: never;
/** @ignore */
className?: string;
/** Tag of Component */
tag?: ElementType;
};
/**
* Binary control that allows users to toggle between two states, such as on/off.
* @docs {@link https://design.visa.com/react/components/switch | See Docs}
* @related switch-label
* @vgar TODO
* @wcag TODO
*/
declare const _default: <HTMLElementType = HTMLInputElement>(props: {
children?: import("react").ReactNode | import("react").ReactNode[];
ref?: ForwardedRef<HTMLElementType> | undefined;
} & import("react").AllHTMLAttributes<HTMLElementType> & import("react").SVGAttributes<HTMLElementType> & SwitchProperties) => import("react").ReactElement;
export default _default;