UNPKG

@primer/react

Version:

An implementation of GitHub's Primer Design System using React

29 lines (28 loc) 2.01 kB
import { DistributiveOmit } from "../utils/modern-polymorphic.js"; import { CardAction, CardActionProps as ActionProps, CardDescriptionProps as DescriptionProps, CardHeadingProps as HeadingProps, CardIcon, CardIconProps as IconProps, CardImage, CardImageProps as ImageProps, CardMetadataProps as MetadataProps, CardProps } from "./Card.js"; //#region src/Card/index.d.ts declare const Card: (<As extends "div" | "section">(props: DistributiveOmit<import("react").ComponentPropsWithRef<import("react").ElementType extends As ? "div" : As> & { className?: string; padding?: "none" | "condensed" | "normal"; borderRadius?: "medium" | "large"; layout?: "default" | "compact"; children: React.ReactNode; }, "as"> & { 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>>; }; //#endregion export { Card, type ActionProps as CardActionProps, type DescriptionProps as CardDescriptionProps, type HeadingProps as CardHeadingProps, type IconProps as CardIconProps, type ImageProps as CardImageProps, type MetadataProps as CardMetadataProps, type CardProps };