JGuang

Card

Card · Arco Design

Preview
npm install @arco-design/web-react@2.66.18

Card

Card is generally used as a container for concise introduction or information.

Install

npm install @arco-design/web-react@2.66.18

Import @arco-design/web-react/dist/css/arco.css at the entry and set the locale with ConfigProvider. React 19 projects must also import @arco-design/web-react/es/_util/react-19-adapter first, or imperative APIs such as Message and Modal cannot render.

Examples

  • Basic: Basic usage. Can hold anything from text, lists, pictures, to paragraphs. Normally used for module separation and content overview.
  • Hoverable: Use hoverable to add a hover style to the card. The hover style can also be customized through style override.
  • No border: Set bordered to false to use borderless cards.
  • Only content: The card can only have a content area.
  • Meta: Use Card.Meta to support more flexible content (cover, avatar, title, description)
  • With row: Often used together with Grid on the overview page of systems.
  • With skeleton: Combine Skeleton to display the text skeleton before the data is loaded.
  • Card grid: Use Card.Grid to enable the card content segmentation mode.
  • Inner card: Other card components can be nested in the card.
  • With tab: Tabs component can be used in card.
  • With actions: The actions field receives an array of ReactNode, which will be displayed at the bottom as button group.

Examples come from the official Arco Design repository (MIT) at the commit published as npm 2.66.18. Some use online images or upload endpoints; network requests are disabled in previews.

API

Card

PropertyDescriptionTypeDefaultValue
borderedWhether to render the borderbooleantrue
hoverableWhether the card can be hoveredboolean-
loadingWhether on loading stateboolean-
sizeSize of the card'default' | 'small'default
coverCover of cardReactNode-
extraContent to render in the top-right corner of the cardstring | ReactNode-
titleTitle of the cardstring | ReactNode-
actionsThe action list which shows at the bottom of the cardReactNode[]-
bodyStyleThe additional css style to apply to card contentCSSProperties-
classNameAdditional css classstring | string[]-
headerStyleThe additional css style to apply to card headCSSProperties-
styleAdditional styleCSSProperties-

Card.Meta

PropertyDescriptionTypeDefaultValue
avatarAvatar of the cardReactNode-
descriptionDescription of the cardstring | ReactNode-
titleTitle of the cardstring | ReactNode-
classNameAdditional css classstring | string[]-
styleAdditional styleCSSProperties-

Card.Grid

PropertyDescriptionTypeDefaultValue
hoverableWhether can be hoveredboolean-
classNameAdditional css classstring | string[]-
styleAdditional styleCSSProperties-