| 1 |
/// <reference types="react" /> |
| 2 |
import { OUIAProps } from '../../helpers'; |
| 3 |
export interface WizardNavItemProps extends Omit<React.HTMLProps<HTMLLIElement>, 'onClick' | 'id' | 'content' | 'type'>, OUIAProps { |
| 4 |
/** Additional classes spread to the wizard nav item */ |
| 5 |
className?: string; |
| 6 |
/** Can nest a WizardNav component for substeps */ |
| 7 |
children?: React.ReactNode; |
| 8 |
/** The content to display in the navigation item */ |
| 9 |
content?: React.ReactNode; |
| 10 |
/** Whether the navigation item is the currently active item */ |
| 11 |
isCurrent?: boolean; |
| 12 |
/** Whether the navigation item is disabled */ |
| 13 |
isDisabled?: boolean; |
| 14 |
/** Whether the navigation item has been visited */ |
| 15 |
isVisited?: boolean; |
| 16 |
/** The step index passed into the onNavItemClick callback */ |
| 17 |
stepIndex: number; |
| 18 |
/** Callback for when the navigation item is clicked */ |
| 19 |
onClick?: (event: React.MouseEvent<HTMLButtonElement> | React.MouseEvent<HTMLAnchorElement>, index: number) => any; |
| 20 |
/** Component used to render WizardNavItem */ |
| 21 |
component?: 'button' | 'a'; |
| 22 |
/** An optional url to use for when using an anchor component */ |
| 23 |
href?: string; |
| 24 |
/** Where to display the linked URL when using an anchor component */ |
| 25 |
target?: React.HTMLAttributeAnchorTarget; |
| 26 |
/** Flag indicating that this NavItem has child steps and is expandable */ |
| 27 |
isExpandable?: boolean; |
| 28 |
/** The id for the navigation item */ |
| 29 |
id?: string | number; |
| 30 |
/** Used to determine the icon displayed next to content. Default has no icon. */ |
| 31 |
status?: 'default' | 'error' | 'success' | 'warning'; |
| 32 |
} |
| 33 |
export declare const WizardNavItem: { |
| 34 |
({ children, content, isCurrent, isDisabled, isVisited, stepIndex, onClick, component: NavItemComponent, href, isExpandable, id, status, target, ouiaId, ouiaSafe, className, ...props }: WizardNavItemProps): import("react/jsx-runtime").JSX.Element; |
| 35 |
displayName: string; |
| 36 |
}; |
| 37 |
//# sourceMappingURL=WizardNavItem.d.ts.map |