UNPKG

@visa/nova-react

Version:

Visa Product Design System Nova React library. Compatible with React ^19.

19 lines (18 loc) 896 B
import { type ComponentPropsWithRef, type ElementType, type ReactElement } from 'react'; export type AccordionToggleIconProperties<ET extends ElementType = 'button'> = { /** manually assign the open state of the accordion */ accordionOpen?: boolean; /** The icon in closed state */ elementClosed?: ReactElement; /** The icon in the open state */ elementOpen?: ReactElement; } & ComponentPropsWithRef<ET>; /** * Component containing the icon and logic for the accordion toggle icon. * @docs {@link https://design.visa.com/components/accordion/?code_library=react | See Docs} */ declare const AccordionToggleIcon: { <ET extends ElementType = "div">({ accordionOpen, className, elementClosed, elementOpen, ...remainingProps }: AccordionToggleIconProperties<ET>): import("react/jsx-runtime").JSX.Element; displayName: string; }; export default AccordionToggleIcon;