UNPKG

@primer/react

Version:

An implementation of GitHub's Primer Design System using React

32 lines 2.07 kB
import { CardIcon, CardImage, CardAction } from './Card'; import type { CardProps, CardIconProps, CardImageProps, CardHeadingProps, CardDescriptionProps, CardActionProps, CardMetadataProps } from './Card'; declare const Card: (<As extends "div" | "section">(props: (import("react").ComponentPropsWithRef<import("react").ElementType extends As ? "div" : As> & { className?: string; padding?: "none" | "condensed" | "normal"; borderRadius?: "medium" | "large"; children: React.ReactNode; } extends infer T ? T extends import("react").ComponentPropsWithRef<import("react").ElementType extends As ? "div" : As> & { className?: string; padding?: "none" | "condensed" | "normal"; borderRadius?: "medium" | "large"; children: React.ReactNode; } ? T extends unknown ? Omit<T, "as"> : never : never : never) & { as?: As | undefined; } & import("react").RefAttributes<any>) => React.ReactNode) & { Icon: typeof CardIcon; Image: typeof CardImage; Heading: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref"> & { as?: "h2" | "h3" | "h4" | "h5" | "h6"; children: React.ReactNode; } & import("react").RefAttributes<HTMLHeadingElement>>; Description: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & { children: React.ReactNode; } & import("react").RefAttributes<HTMLParagraphElement>>; Action: typeof CardAction; Metadata: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & { children: React.ReactNode; } & import("react").RefAttributes<HTMLDivElement>>; }; export { Card }; export type { CardProps, CardIconProps, CardImageProps, CardHeadingProps, CardDescriptionProps, CardActionProps, CardMetadataProps, }; //# sourceMappingURL=index.d.ts.map