@visa/nova-react
Version:
Visa Product Design System Nova React library. Compatible with React ^19.
20 lines (19 loc) • 742 B
TypeScript
import type { ComponentPropsWithRef, ElementType } from 'react';
export type ToggleProperties<ET extends ElementType = 'label'> = {
/** Icons only toggle button */
iconOnly?: boolean;
/** Tag of Component */
tag?: ElementType;
} & ComponentPropsWithRef<ET>;
/**
* Selection element that allows users to switch between states or views.
* @docs {@link https://design.visa.com/components/toggle-button/?code_library=react | See Docs}
* @related toggle-container
* @vgar TODO
* @wcag TODO
*/
declare const Toggle: {
<ET extends ElementType = "label">({ className, iconOnly, tag: Tag, ...remainingProps }: ToggleProperties<ET>): import("react/jsx-runtime").JSX.Element;
displayName: string;
};
export default Toggle;