@primer/react
Version:
An implementation of GitHub's Primer Design System using React
32 lines • 1.96 kB
TypeScript
import type { CardProps, CardIconProps, CardImageProps, CardHeadingProps, CardDescriptionProps, CardMenuProps, CardMetadataProps } from './Card';
declare const Card: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
className?: string;
padding?: "none" | "condensed" | "normal";
borderRadius?: "medium" | "large";
} & import("react").RefAttributes<HTMLDivElement>> & {
Icon: {
({ icon: IconComponent, "aria-label": ariaLabel, className }: CardIconProps): import("react").JSX.Element;
displayName: string;
};
Image: {
({ src, alt, className, ...rest }: CardImageProps): import("react").JSX.Element;
displayName: string;
};
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>>;
Menu: {
({ children }: CardMenuProps): import("react").JSX.Element;
displayName: string;
};
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, CardMenuProps, CardMetadataProps, };
//# sourceMappingURL=index.d.ts.map