UNPKG

@primer/react

Version:

An implementation of GitHub's Primer Design System using React

27 lines (26 loc) 1.07 kB
import { To } from 'history'; import React from 'react'; import { SxProp } from '../sx'; import { ComponentProps } from '../utils/types'; declare const SubNavBase: import("styled-components").StyledComponent<"nav", any, SxProp, never>; export type SubNavProps = { actions?: React.ReactNode; align?: 'right'; full?: boolean; label?: string; } & ComponentProps<typeof SubNavBase>; declare function SubNav({ actions, className, children, label, ...rest }: SubNavProps): JSX.Element; export type SubNavLinksProps = SxProp; declare const SubNavLink: import("styled-components").StyledComponent<"a", any, { to?: To | undefined; selected?: boolean | undefined; } & SxProp, never>; export type SubNavLinkProps = ComponentProps<typeof SubNavLink>; declare const _default: typeof SubNav & { Link: import("styled-components").StyledComponent<"a", any, { to?: To | undefined; selected?: boolean | undefined; } & SxProp, never>; Links: import("styled-components").StyledComponent<"div", any, SxProp, never>; }; export default _default;