@visa/nova-react
Version:
Visa Product Design System Nova React library. Compatible with React ^19.
24 lines (23 loc) • 967 B
TypeScript
import { type ComponentPropsWithRef, type ElementType, type ReactElement } from 'react';
export type WizardStepProperties<ET extends ElementType = 'div'> = ({
/** Cloned Element (not compatible with tag property) */
element?: never;
/** Tag (not compatible with element property) */
tag?: ElementType;
} | {
/** Cloned Element (not compatible with tag property) */
element?: ReactElement<ComponentPropsWithRef<ET>>;
/** Tag (not compatible with element property) */
tag?: never;
}) & Omit<ComponentPropsWithRef<ET>, ''>;
/**
* Represents an individual step within a multi-step wizard process.
* @docs {@link https://design.visa.com/patterns/wizard | See Docs}
* @vgar TODO
* @wcag TODO
*/
declare const WizardStep: {
<ET extends ElementType = "div">({ className, element, tag: Tag, ...remainingProps }: WizardStepProperties<ET>): import("react/jsx-runtime").JSX.Element;
displayName: string;
};
export default WizardStep;