@react-md/card
Version:
Create interactable cards from the material design specifications.
27 lines (26 loc) • 982 B
TypeScript
import type { HTMLAttributes } from "react";
export interface CardProps extends HTMLAttributes<HTMLDivElement> {
/**
* Boolean if the card should gain additional box-shadow elevation once
* hovered.
*/
raisable?: 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 `raisable` prop.
*/
bordered?: boolean;
/** @deprecated \@since 5.1.3 Use {@link raisable} instead. */
raiseable?: 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>>;