1.3K

Cards

A container component for displaying a collection of cards in an MDX document.

import { Cards, Card } from '@lobehub/ui/mdx';

Example

Rows

APIs

Cards

PropertyDescriptionTypeDefault
childrenThe Card components to displayReactNode[]-
classNameAdditional CSS classstring-
styleAdditional stylesCSSProperties-

Card

PropertyDescriptionTypeDefault
titleTitle of the cardstring-
descDescription textstring-
hrefLink URL when card is clickedstring-
imageURL of an image to displaystring-
iconIcon to displayIconProps['icon']-
iconPropsAdditional props for the iconOmit<IconProps, 'icon'>-
tagTag text to displaystring-
tagColorColor of the tagTagProps['color']'blue'
variantVisual style variant'filled' | other Block variants'filled'
classNameAdditional CSS classstring-
styleAdditional stylesCSSProperties-