UNPKG

@primer/react

Version:

An implementation of GitHub's Primer Design System using React

27 lines 1.48 kB
import type { To } from 'history'; import React from 'react'; import type { SxProp } from '../sx'; import type { ComponentProps } from '../utils/types'; type StyledSubNavProps = React.ComponentProps<'nav'> & { actions?: React.ReactNode; align?: 'right'; full?: boolean; label?: string; } & SxProp; type StyledSubNavLinksProps = React.ComponentProps<'div'> & SxProp; type StyledSubNavLinkProps = React.ComponentProps<'a'> & SxProp & { to?: To; selected?: boolean; }; declare const SubNav: React.ForwardRefExoticComponent<Omit<StyledSubNavProps, "ref"> & React.RefAttributes<HTMLElement>>; declare const SubNavLinks: React.ForwardRefExoticComponent<Omit<StyledSubNavLinksProps, "ref"> & React.RefAttributes<HTMLElement>>; declare const SubNavLink: React.ForwardRefExoticComponent<Omit<StyledSubNavLinkProps, "ref"> & React.RefAttributes<HTMLElement>>; export type SubNavProps = ComponentProps<typeof SubNav>; export type SubNavLinksProps = ComponentProps<typeof SubNavLinks>; export type SubNavLinkProps = ComponentProps<typeof SubNavLink>; declare const _default: React.ForwardRefExoticComponent<Omit<StyledSubNavProps, "ref"> & React.RefAttributes<HTMLElement>> & { Link: React.ForwardRefExoticComponent<Omit<StyledSubNavLinkProps, "ref"> & React.RefAttributes<HTMLElement>>; Links: React.ForwardRefExoticComponent<Omit<StyledSubNavLinksProps, "ref"> & React.RefAttributes<HTMLElement>>; }; export default _default; //# sourceMappingURL=SubNav.d.ts.map