import * as React from 'react'; import { PaperProps } from './paper'; import { StandardProps } from './types'; export interface CardProps extends StandardProps { /** * @name Raised * @description If true, the card will use raised styling. * @group Card * */ raised?: boolean; /** * @name Width * @group Card * @default 300px */ width?: string; /** * @default * ```tsx * import * as React from 'react'; * import { CardContent, CardHeader, CardMedia, CardActions } from './'; * * export default () => ( * <> * * * * * <> * ); * ``` **/ children?: React.ReactNode; } export interface CardHeaderProps { /** * * @default * ```tsx * import * as React from 'react'; * import { Text } from '@meetalva/essentials'; * * export default () => ( * * ); * ``` * */ title?: React.ReactNode; /** * @default * ```tsx * import * as React from 'react'; * import { Text } from '@meetalva/essentials'; * * export default () => ( * * ); * ``` * */ subheader?: React.ReactNode; /** * @default * ```tsx * import * as React from 'react'; * import { IconButton } from './button'; * * export default () => ( * * ); * ``` * */ action?: React.ReactNode; /** * @default * ```tsx * import * as React from 'react'; * import { Avatar } from './avatar'; * * export default () => ( * * ); * ``` * */ avatar?: React.ReactNode; } export interface CardContentProps { /** * @default * ```tsx * import * as React from 'react'; * import { Typography } from './'; * * export default () => ( * <> * * * <> * ); * ``` **/ children?: React.ReactNode; } export interface CardMediaProps { /** * @name Image * @default https://source.unsplash.com/300x200/?cat * @asset * */ image?: string; /** * @name Src * */ src?: string; /** * @name Height * @default 200px * */ height?: string; } export interface CardActionAreaProps { /** * @name Disable Action Spacing * @group Card ActionArea * * */ disableActionSpacing?: boolean; } export interface CardActionsProps { /** * @name Disable Action Spacing * @group Card Actions * * */ disableActionSpacing?: boolean; /** * @default * ```tsx * import * as React from 'react'; * import { Button } from './'; * * export default () => ( *