@primer/components
Version:
Primer react components
21 lines (20 loc) • 1.12 kB
TypeScript
/// <reference types="react" />
import * as History from 'history';
import { SystemCommonProps, SystemTypographyProps } from './constants';
import { SxProp } from './sx';
import { ComponentProps } from './utils/types';
declare const TabNavBase: import("styled-components").StyledComponent<"div", any, SystemCommonProps & SxProp, never>;
export declare type TabNavProps = ComponentProps<typeof TabNavBase>;
declare function TabNav({ children, 'aria-label': ariaLabel, ...rest }: TabNavProps): JSX.Element;
declare const TabNavLink: import("styled-components").StyledComponent<"a", any, {
to?: History.LocationDescriptor<unknown> | undefined;
selected?: boolean | undefined;
} & SystemCommonProps & SxProp & SystemTypographyProps, never>;
export declare type TabNavLinkProps = ComponentProps<typeof TabNavLink>;
declare const _default: typeof TabNav & {
Link: import("styled-components").StyledComponent<"a", any, {
to?: History.LocationDescriptor<unknown> | undefined;
selected?: boolean | undefined;
} & SystemCommonProps & SxProp & SystemTypographyProps, never>;
};
export default _default;