import * as React from 'react'; import { ThemeInterface } from '../../theme/magma'; import { XOR } from '../../utils'; import { TabsIconPosition } from '../Tabs'; import { TabsOrientation, TabsTextTransform } from '../Tabs/shared'; export interface BaseNavTabProps extends React.HTMLAttributes { /** * @internal */ css?: any; /** * Icon to display within the component */ icon?: React.ReactElement | React.ReactElement[]; /** * If true, the component will display with the active/selected state */ isActive?: boolean; /** * If true, sets a focus on the specified NavTab */ isFocused?: boolean; isInverse?: boolean; /** * Determines if the tabs are displayed vertically or horizontally * @default TabsOrientation.horizontal */ orientation?: TabsOrientation; /** * Determines whether the tab appears in all-caps * @default TabsTextTransform.none */ textTransform?: TabsTextTransform; /** * @internal */ testId?: string; to?: string; /** * @internal */ theme?: ThemeInterface; } export interface NavTabChildrenProps extends BaseNavTabProps { children?: JSX.Element | string; /** * The href value of the tab link */ to: string; } export interface NavTabComponentProps extends BaseNavTabProps { /** * The prop for custom component instead of `a` in NavTab. */ component: React.ReactNode; /** * The orientation of icon on NavTab */ iconPosition?: TabsIconPosition; /** * If true, the tab will take up the full width of its container * @default false */ isFullWidth?: boolean; } export declare type NavTabProps = XOR; interface StyledCustomTabProps extends NavTabComponentProps { hasStackedIcon?: boolean; } export declare const StyledCustomTab: React.ForwardRefExoticComponent>; export declare const NavTab: React.ForwardRefExoticComponent<({} & NavTabComponentProps & React.RefAttributes) | ({ component?: never; iconPosition?: never; isFullWidth?: never; } & NavTabChildrenProps & React.RefAttributes)>; export {};