| 1 |
/// <reference types="react" /> |
| 2 |
import { OUIAProps } from '../../../helpers'; |
| 3 |
export interface WizardNavItemProps extends OUIAProps { |
| 4 |
/** Can nest a WizardNav component for substeps */ |
| 5 |
children?: React.ReactNode; |
| 6 |
/** The content to display in the nav item */ |
| 7 |
content?: React.ReactNode; |
| 8 |
/** Whether the nav item is the currently active item */ |
| 9 |
isCurrent?: boolean; |
| 10 |
/** Whether the nav item is disabled */ |
| 11 |
isDisabled?: boolean; |
| 12 |
/** The step passed into the onNavItemClick callback */ |
| 13 |
step: number; |
| 14 |
/** Callback for when the nav item is clicked */ |
| 15 |
onNavItemClick?: (step: number) => any; |
| 16 |
/** Component used to render WizardNavItem */ |
| 17 |
navItemComponent?: 'button' | 'a'; |
| 18 |
/** An optional url to use for when using an anchor component */ |
| 19 |
href?: string; |
| 20 |
/** Flag indicating that this NavItem has child steps and is expandable */ |
| 21 |
isExpandable?: boolean; |
| 22 |
/** The id for the nav item */ |
| 23 |
id?: string | number; |
| 24 |
} |
| 25 |
export declare const WizardNavItem: React.FunctionComponent<WizardNavItemProps>; |
| 26 |
//# sourceMappingURL=WizardNavItem.d.ts.map |