@primer/react
Version:
An implementation of GitHub's Primer Design System using React
24 lines (23 loc) • 1.01 kB
TypeScript
import { WithSlotMarker } from "../utils/types/Slots.js";
import React from "react";
import { To } from "history";
//#region src/SubNav/SubNav.d.ts
type SubNavProps = React.ComponentProps<'nav'> & {
actions?: React.ReactNode;
align?: 'right';
full?: boolean;
label?: string;
};
type SubNavLinksProps = React.ComponentProps<'div'>;
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;
};
//#endregion
export { SubNavLinkProps, SubNavLinksProps, SubNavProps, _default as default };