@react-md/card
Version:
Create interactable cards from the material design specifications.
25 lines (24 loc) • 887 B
TypeScript
import { HTMLAttributes } from "react";
export interface CardProps extends HTMLAttributes<HTMLDivElement> {
/**
* Boolean if the card should gain additional box-shadow elevation once
* hovered.
*/
raiseable?: boolean;
/**
* Boolean if the card should no longer be `display: inline-block`, but
* instead `display: block; width: 100%;`.
*/
fullWidth?: boolean;
/**
* Boolean if the card should use a border instead of box-shadow. Enabling
* this prop will always disable the `raiseable` prop.
*/
bordered?: boolean;
}
/**
* This is the root card component that should be used along side all the other
* card parts. It adds some general styles and elevation to help show
* prominence.
*/
export declare const Card: import("react").ForwardRefExoticComponent<CardProps & import("react").RefAttributes<HTMLDivElement>>;