Skip to main content

Asset card

A compact summary of one asset.

<mm-asset-card framed name="orders_daily" href="/assets/orders_daily" provider="postgresql" type="Table" columns="14"
mrn="mrn://postgresql/table/shop.public.orders_daily" owners="Analytics Engineering, Jane Doe"
tags="finance, pii, certified" rows="1284019" updated="2026-10-27T04:12:00Z"></mm-asset-card>

Guidance​

Asset cards summarise one catalog asset: its provider logo and name (an ink link with href, underlined on hover and focus), a sentence-case caption of real metadata ("Table · 14 cols"), the MRN as a quiet caption in the text face (mono is kept for the one MRN in the page header), the description clamped to two lines, owners, tags (with pii and certified in their own colours), the row count in tabular figures and when it was last updated. They are built for mm-hover-card and also work on their own; set framed for a bordered surface when the card is not already inside a panel or popover, since cards never nest in cards.

loading holds the shape with a skeleton (after the usual 200ms delay); error replaces the content with the message, in crimson with an icon. An asset with no description says so rather than leaving a gap.

Properties​

PropertyAttributeTypeDefaultDescription
namenamestring''Asset name, e.g. orders_daily.
hrefhrefstring''Link to the asset page. Makes the name a link.
providerproviderstring''Provider key for the logo, e.g. postgresql, kafka, snowflake.
typetypestring''Asset type for the metadata caption, e.g. "Table", "Topic", "Dashboard".
columnscolumnsnumber | undefinedColumn count, added to the metadata caption when known.
mrnmrnstring''The asset's MRN, e.g. mrn://postgresql/table/shop.public.orders.
descriptiondescriptionstring''Description, clamped to two lines.
ownersownersstring[][]Owners: an array, or a comma-separated attribute.
tagstagsstring[][]Tags: an array, or a comma-separated attribute. pii and certified get their own styles.
rowsrowsnumber | undefinedRow count, shown in full with tabular figures.
updatedAtupdatedstring''When the asset last changed: an ISO timestamp, shown relative with the exact time on hover.
loadingloadingbooleanfalseShows a skeleton while the asset loads.
errorerrorstring''An error message in place of the content.
framedframedbooleanfalseA bordered surface for use outside a panel or popover.

CSS parts​

PartDescription
cardThe content grid.
nameThe asset name, a link when href is set.
mrnThe MRN.
descriptionThe description.

CSS custom properties​

PropertyDescription
--mm-card-widthCard width. Defaults to 320px.

Examples​

Every state of mm-asset-card in Storybook, with keyboard and screen reader tests.