UNPKG

@primer/react

Version:

An implementation of GitHub's Primer Design System using React

22 lines 985 B
import type { To } from 'history'; import React from 'react'; import type { WithSlotMarker } from '../utils/types'; export type SubNavProps = React.ComponentProps<'nav'> & { actions?: React.ReactNode; align?: 'right'; full?: boolean; label?: string; }; export type SubNavLinksProps = React.ComponentProps<'div'>; export type SubNavLinkProps = React.ComponentProps<'a'> & { to?: To; selected?: boolean; }; declare const SubNavLink: React.ForwardRefExoticComponent<Omit<SubNavLinkProps, "ref"> & React.RefAttributes<HTMLAnchorElement>>; declare const _default: React.ForwardRefExoticComponent<Omit<SubNavProps, "ref"> & React.RefAttributes<HTMLElement>> & { Link: WithSlotMarker<typeof SubNavLink>; Links: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>; __SLOT__: symbol; }; export default _default; //# sourceMappingURL=SubNav.d.ts.map