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
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
name | name | string | '' | Asset name, e.g. orders_daily. |
href | href | string | '' | Link to the asset page. Makes the name a link. |
provider | provider | string | '' | Provider key for the logo, e.g. postgresql, kafka, snowflake. |
type | type | string | '' | Asset type for the metadata caption, e.g. "Table", "Topic", "Dashboard". |
columns | columns | number | undefined | Column count, added to the metadata caption when known. | |
mrn | mrn | string | '' | The asset's MRN, e.g. mrn://postgresql/table/shop.public.orders. |
description | description | string | '' | Description, clamped to two lines. |
owners | owners | string[] | [] | Owners: an array, or a comma-separated attribute. |
tags | tags | string[] | [] | Tags: an array, or a comma-separated attribute. pii and certified get their own styles. |
rows | rows | number | undefined | Row count, shown in full with tabular figures. | |
updatedAt | updated | string | '' | When the asset last changed: an ISO timestamp, shown relative with the exact time on hover. |
loading | loading | boolean | false | Shows a skeleton while the asset loads. |
error | error | string | '' | An error message in place of the content. |
framed | framed | boolean | false | A bordered surface for use outside a panel or popover. |
CSS parts
| Part | Description |
|---|---|
card | The content grid. |
name | The asset name, a link when href is set. |
mrn | The MRN. |
description | The description. |
CSS custom properties
| Property | Description |
|---|---|
--mm-card-width | Card width. Defaults to 320px. |
Examples
Every state of mm-asset-card in Storybook, with keyboard and screen reader tests.