@primer/react
Version:
An implementation of GitHub's Primer Design System using React
23 lines • 989 B
TypeScript
import type { To } from 'history';
import React from 'react';
export type UnderlineNavProps = {
actions?: React.ReactNode;
align?: 'right';
full?: boolean;
label?: string;
} & React.ComponentProps<'nav'>;
declare function UnderlineNav({ actions, className, align, children, full, label, ...rest }: UnderlineNavProps): React.JSX.Element;
type StyledUnderlineNavLinkProps = {
to?: To;
selected?: boolean;
};
type UnderlineNavLinkProps = React.ComponentProps<'a'> & StyledUnderlineNavLinkProps;
export type { UnderlineNavLinkProps };
/**
* @deprecated UnderlineNav is deprecated and will be replaced by the draft `UnderlineNav` in the next major release. See https://primer.style/react/drafts/UnderlineNav2 for more details.
*/
declare const _default: typeof UnderlineNav & {
Link: React.ForwardRefExoticComponent<Omit<UnderlineNavLinkProps, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
};
export default _default;
//# sourceMappingURL=UnderlineNav.d.ts.map