| 1 |
/// <reference types="react" /> |
| 2 |
import { OUIAProps } from '../../helpers'; |
| 3 |
export interface TabProps extends Omit<React.HTMLProps<HTMLAnchorElement | HTMLButtonElement>, 'title' | 'action'>, OUIAProps { |
| 4 |
/** content rendered inside the Tab content area. */ |
| 5 |
children?: React.ReactNode; |
| 6 |
/** additional classes added to the Tab */ |
| 7 |
className?: string; |
| 8 |
/** URL associated with the Tab. A Tab with an href will render as an <a> instead of a <button>. A Tab inside a <Tabs component="nav"> should have an href. */ |
| 9 |
href?: string; |
| 10 |
/** Content rendered in the tab title. Should be <TabTitleText> and/or <TabTitleIcon> for proper styling. */ |
| 11 |
title: React.ReactNode; |
| 12 |
/** uniquely identifies the tab */ |
| 13 |
eventKey: number | string; |
| 14 |
/** child id for case in which a TabContent section is defined outside of a Tabs component */ |
| 15 |
tabContentId?: string | number; |
| 16 |
/** child reference for case in which a TabContent section is defined outside of a Tabs component */ |
| 17 |
tabContentRef?: React.RefObject<any>; |
| 18 |
/** whether to render the tab or not */ |
| 19 |
isHidden?: boolean; |
| 20 |
/** Adds disabled styling and disables the button using the disabled html attribute */ |
| 21 |
isDisabled?: boolean; |
| 22 |
/** Adds disabled styling and communicates that the button is disabled using the aria-disabled html attribute */ |
| 23 |
isAriaDisabled?: boolean; |
| 24 |
/** Events to prevent when the button is in an aria-disabled state */ |
| 25 |
inoperableEvents?: string[]; |
| 26 |
/** @hide Forwarded ref */ |
| 27 |
innerRef?: React.Ref<any>; |
| 28 |
/** Optional Tooltip rendered to a Tab. Should be <Tooltip> with appropriate props for proper rendering. */ |
| 29 |
tooltip?: React.ReactElement<any>; |
| 30 |
/** Aria-label for the close button added by passing the onClose property to Tabs. */ |
| 31 |
closeButtonAriaLabel?: string; |
| 32 |
/** Flag indicating the close button should be disabled */ |
| 33 |
isCloseDisabled?: boolean; |
| 34 |
/** Actions rendered beside the tab content */ |
| 35 |
actions?: React.ReactNode; |
| 36 |
/** Value to set the data-ouia-component-id for the tab button.*/ |
| 37 |
ouiaId?: number | string; |
| 38 |
} |
| 39 |
export declare const Tab: import("react").ForwardRefExoticComponent<Omit<TabProps, "ref"> & import("react").RefAttributes<any>>; |
| 40 |
//# sourceMappingURL=Tab.d.ts.map |