UNPKG

@primer/react

Version:

An implementation of GitHub's Primer Design System using React

27 lines 1.26 kB
import React from 'react'; import { type FC, type ElementType } from 'react'; import type { IconProps } from '@primer/octicons-react'; import type { ForwardRefComponent as PolymorphicForwardRefComponent } from '../../utils/polymorphic'; export declare const GAP = 8; type UnderlineWrapperProps<As extends React.ElementType> = { slot?: string; as?: As; className?: string; ref?: React.Ref<HTMLElement>; }; export declare const UnderlineWrapper: PolymorphicForwardRefComponent<ElementType, UnderlineWrapperProps<ElementType>>; export declare const UnderlineItemList: PolymorphicForwardRefComponent<"ul">; export declare const LoadingCounter: () => React.JSX.Element; export type UnderlineItemProps<As extends React.ElementType> = { as?: As | 'a' | 'button'; className?: string; iconsVisible?: boolean; loadingCounters?: boolean; counter?: number | string; icon?: FC<IconProps> | React.ReactElement<any>; id?: string; ref?: React.Ref<unknown>; } & React.ComponentPropsWithoutRef<As extends 'a' ? 'a' : As extends 'button' ? 'button' : As>; export declare const UnderlineItem: PolymorphicForwardRefComponent<ElementType, UnderlineItemProps<ElementType>>; export {}; //# sourceMappingURL=UnderlineTabbedInterface.d.ts.map