UNPKG

@visa/nova-react

Version:

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

22 lines (21 loc) 1.21 kB
import { type ComponentPropsWithRef, type ElementType, type ReactElement } from 'react'; export type TabSuffixProperties<ET extends ElementType = 'div'> = ({ /** Child element that the styles are applies to. Only allows for single child element. (not compatible with element property) */ children: ReactElement<ComponentPropsWithRef<ET>>; /** Cloned Element (not compatible with children) */ element?: never; } | { /** Child element that the styles are applies to. Only allows for single child element. (not compatible with element property) */ children?: never; /** Cloned Element (not compatible with children) */ element: ReactElement<ComponentPropsWithRef<ET>>; }) & Omit<ComponentPropsWithRef<ET>, ''>; /** * Utility class for positioning and styling elements at the end of tab components. * @docs {@link https://design.visa.com/components/tabs/?code_library=react | See Docs} */ declare const TabSuffix: { <ET extends ElementType = "div">({ children, className, element, ...remainingProps }: TabSuffixProperties<ET>): ReactElement<TabSuffixProperties<"div">, string | import("react").JSXElementConstructor<any>>; displayName: string; }; export default TabSuffix;