UNPKG

@react-md/card

Version:

Create interactable cards from the material design specifications.

33 lines (32 loc) 1.37 kB
import { HTMLAttributes } from "react"; export interface CardContentProps extends HTMLAttributes<HTMLDivElement> { /** * Boolean if the padding should be removed from the content. This is really * only useful if your child elements have their own padding. */ disablePadding?: boolean; /** * Boolean if the extra `padding-bottom` that gets applied when the * `CardContent` is the last component within the `Card`. If the * `disablePadding` prop is enabled, this prop will be ignored and the extra * padding will not be applied. */ disableExtraPadding?: boolean; /** * Boolean if the current secondary text color should be disabled from the * content. */ disableSecondaryColor?: boolean; /** * Boolean if any `<p>` tags that appear as children of this component should * no longer have their `margin-top` and `margin-bottom` removed. The default * behavior is to remove all `margin-top` and remove the `margin-bottom` if * the `<p>` is the last child. */ disableParagraphMargin?: boolean; } /** * The main content for the `Card`. This adds some additional padding and removes * margin from `<p>` tags by default. */ export declare const CardContent: import("react").ForwardRefExoticComponent<CardContentProps & import("react").RefAttributes<HTMLDivElement>>;