UNPKG

@sinchsmb/ui-kit

Version:

UI kit for SinchSMB frontend

25 lines (24 loc) 670 B
import { AriaAttributes, ReactNode } from 'react'; import { CommonProps } from '../../types'; export interface CardProps extends CommonProps { /** * Content of card * * Should be {@link CardHeader} and {@link CardBody}. */ children: ReactNode; ariaLabelledBy?: AriaAttributes['aria-labelledby']; } /** * Card with given header (by {@link CardHeader}) and body (by {@link CardBody}). * * ```tsx * import { Card, CardHeader, CardBody } from 'ui-kit'; * * <Card> * <CardHeader>Contact Information</CardHeader> * <CardBody>Some content</CardBody> * </Card> * ``` */ export declare function Card(props: CardProps): JSX.Element;