Card | AIUI | Rokid

card composes a cover, title, body, and footer into a content card. The cover, title, and footer are optional, while authored child nodes form the body.

Card

card composes a cover, title, body, and footer into a content card. The cover, title, and footer are optional, while authored child nodes form the body.

Present a Content Card with a Cover

<card cover="assets/cover.jpg" title="Today's pick" footer="Updated just now">
  <text>Card body content.</text>
</card>

Present a Compact Information Card

<card title="Device status">
  <text>Running normally</text>
</card>

Properties

PropertyTypeDefaultDescription
coverString-Path or URL for the top cover image.
titleString-Title text.
footerString-Supporting text at the bottom.

Properties support WXML data binding. Internal styling can be adjusted with CSS custom properties including --card-cover-height, --card-padding, --card-title-*, --card-footer-*, and --card-divider-*.