UNPKG

@hakit/components

Version:
16 lines 1.32 kB
import { CardBaseProps, PersonCard } from '../..'; import { EntityName, FilterByDomain } from '@hakit/core'; import { ReactElement } from 'react'; type OmitProperties = "as" | "active" | "disabled" | "children" | "entity" | "title" | "onClick" | "modalProps" | "serviceData" | "service" | "disableRipples" | "disableScale" | "disableActiveState" | "rippleProps" | "borderRadius" | "disableActiveState" | "onlyFunctionality"; export interface FamilyCardProps extends Omit<CardBaseProps<"div", FilterByDomain<EntityName, "person">>, OmitProperties> { /** the children for the FamilyCard, it accepts Person components */ children: ReactElement<typeof PersonCard> | ReactElement<typeof PersonCard>[]; /** optional title of the card */ title?: string; } /** The FamilyCard component is an easy way to represent the state of the persons of your family within a simple layout, add each person to a PersonCard and place them as children within this card and you're good to go! * By default the layout is automatically adjusted to fit the amount of people you have, but you can override this by setting an BreakPoint prop on the PersonCard component. */ export declare function FamilyCard(props: FamilyCardProps): import("@emotion/react/jsx-runtime").JSX.Element; export {}; //# sourceMappingURL=index.d.ts.map