@visa/nova-react
Version:
Visa Product Design System Nova React library. Compatible with React ^19.
18 lines (17 loc) • 669 B
TypeScript
import type { ComponentPropsWithRef, ElementType } from 'react';
export type SwitchProperties<ET extends ElementType = 'input'> = {
/** Tag of Component */
tag?: ElementType;
} & ComponentPropsWithRef<ET>;
/**
* Binary control that allows users to toggle between two states, such as on/off.
* @docs {@link https://design.visa.com/components/switch/?code_library=react | See Docs}
* @related switch-label
* @vgar TODO
* @wcag TODO
*/
declare const Switch: {
<ET extends ElementType = "input">({ className, tag: Tag, ...remainingProps }: SwitchProperties<ET>): import("react/jsx-runtime").JSX.Element;
displayName: string;
};
export default Switch;