UNPKG

@primer/react

Version:

An implementation of GitHub's Primer Design System using React

37 lines 1.98 kB
import type { ForwardRefComponent as PolymorphicForwardRefComponent } from '../utils/polymorphic'; import React from 'react'; import type { ActionListTrailingActionProps, ActionListDividerProps, ActionListLeadingVisualProps, ActionListTrailingVisualProps, ActionListGroupHeadingProps } from '../ActionList'; import type { SxProp } from '../sx'; export type NavListProps = { children: React.ReactNode; } & SxProp & React.ComponentProps<'nav'>; export type NavListItemProps = { children: React.ReactNode; defaultOpen?: boolean; href?: string; 'aria-current'?: 'page' | 'step' | 'location' | 'date' | 'time' | 'true' | 'false' | boolean; inactiveText?: string; } & SxProp; export type NavListSubNavProps = { children: React.ReactNode; } & SxProp; export type NavListLeadingVisualProps = ActionListLeadingVisualProps; export type NavListTrailingVisualProps = ActionListTrailingVisualProps; export type NavListDividerProps = ActionListDividerProps; export type NavListTrailingActionProps = ActionListTrailingActionProps; export type NavListGroupProps = { children: React.ReactNode; title?: string; } & SxProp; export type NavListGroupHeadingProps = ActionListGroupHeadingProps; export declare const NavList: React.ForwardRefExoticComponent<Omit<NavListProps, "ref"> & React.RefAttributes<HTMLElement>> & { Item: PolymorphicForwardRefComponent<"a", NavListItemProps>; SubNav: PolymorphicForwardRefComponent<"ul", NavListSubNavProps>; LeadingVisual: React.FC<React.PropsWithChildren<import("../ActionList/Visuals").VisualProps>>; TrailingVisual: React.FC<React.PropsWithChildren<import("../ActionList/Visuals").VisualProps>>; TrailingAction: PolymorphicForwardRefComponent<"button" | "a", ActionListTrailingActionProps>; Divider: React.FC<React.PropsWithChildren<ActionListDividerProps>>; Group: React.FC<NavListGroupProps>; GroupHeading: React.FC<ActionListGroupHeadingProps>; }; //# sourceMappingURL=NavList.d.ts.map