UNPKG

@primer/react

Version:

An implementation of GitHub's Primer Design System using React

20 lines 910 B
import type { Location, Pathname } from 'history'; import type { SxProp } from '../sx'; import React from 'react'; import type { ForwardRefComponent as PolymorphicForwardRefComponent } from '../utils/polymorphic'; export type HeaderProps = React.ComponentProps<'header'> & SxProp & { as?: React.ElementType; }; export type HeaderItemProps = React.ComponentProps<'div'> & SxProp & { full?: boolean; }; export type HeaderLinkProps = React.ComponentProps<'a'> & SxProp & { to?: Location | Pathname; as?: React.ElementType; }; declare const _default: PolymorphicForwardRefComponent<"header", HeaderProps> & { Link: React.ForwardRefExoticComponent<Omit<HeaderLinkProps, "ref"> & React.RefAttributes<HTMLAnchorElement>>; Item: React.ForwardRefExoticComponent<Omit<HeaderItemProps, "ref"> & React.RefAttributes<HTMLDivElement>>; }; export default _default; //# sourceMappingURL=Header.d.ts.map