UNPKG

@activecollab/components

Version:

ActiveCollab Components

19 lines 945 B
import React, { BaseHTMLAttributes, CSSProperties, ReactElement, ReactNode } from "react"; import { PolymorphicComponentPropsWithRef } from "../../utils/types"; import { Card, ICardProps } from "../Card"; export interface IEntityCardProps extends ICardProps, BaseHTMLAttributes<HTMLElement> { /** ClassName to add on Card */ className?: string; /** Show as group of Cards on grid */ isCollection?: boolean; /** Background color to override for Card */ background?: string; /** CSSProperties to override for Card */ style?: CSSProperties; } export type EntityCardProps<C extends React.ElementType> = PolymorphicComponentPropsWithRef<C, IEntityCardProps>; export type EntityComponent = <C extends React.ElementType = typeof Card>(props: EntityCardProps<C>) => ReactElement | ReactNode | null; export declare const EntityCard: EntityComponent & { displayName?: string; }; //# sourceMappingURL=EntityCard.d.ts.map