@primer/react
Version:
An implementation of GitHub's Primer Design System using React
26 lines • 1.27 kB
TypeScript
import type { To } from 'history';
import React from 'react';
import type { SxProp } from '../../sx';
import type { ComponentProps } from '../../utils/types';
declare const UnderlineNavBase: import("styled-components").StyledComponent<"nav", any, SxProp, never>;
export type UnderlineNavProps = {
actions?: React.ReactNode;
align?: 'right';
full?: boolean;
label?: string;
} & ComponentProps<typeof UnderlineNavBase>;
declare function UnderlineNav({ actions, className, align, children, full, label, theme, ...rest }: UnderlineNavProps): React.JSX.Element;
type StyledUnderlineNavLinkProps = {
to?: To;
selected?: boolean;
} & SxProp;
declare const UnderlineNavLink: import("styled-components").StyledComponent<"a", any, StyledUnderlineNavLinkProps, never>;
export type UnderlineNavLinkProps = ComponentProps<typeof UnderlineNavLink>;
/**
* @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: import("styled-components").StyledComponent<"a", any, StyledUnderlineNavLinkProps, never>;
};
export default _default;
//# sourceMappingURL=UnderlineNav.d.ts.map