EntityCard

A card for one thing (a product, place, person or listing): an image, title, subtitle, description, a price or meta line, a badge, a rating and up to three buttons. href opens a page, and onClick is sent when it is bound. Use a Grid of EntityCards for several things.

Examples

Loading examples…

Props

PropTypeDescription
titlestringThe name
subtitlestringA second line, for example the brand or category
descriptionstringUp to three lines
imagestringAn image URL
imageAspectRatiostringDefault "4 / 3"
metastringA short fact line, for example "$29 / month" or "Open until 22:00"
badgeobject
ratingnumber0 to 5, shown as stars
ratingCountnumberThe number of ratings
hrefstringOpens this URL in a new tab when the user clicks the card
actionsobject[]Up to three buttons. A button without href sends onAction with its label
layout"vertical" | "horizontal"Default "vertical". "horizontal" puts the image on the left
widthnumber | string

Events

  • onClick · Sent when the user clicks the card and it has no href.
  • onAction · Sent when the user clicks a button without href. The args carry the label of the button.

Link to EntityCard · All standard components

On this page