Skip to content

ListingCard

<caos-listing-card>

one Exchange listing as a card: publisher, title, tagline, type, price

May be placed on an app’s home page, a page inside an app and a record page.

Name Attribute Description Type Default Required
listing_title listing-title, markup only The listing name, and the card’s accessible name. Called listing-title rather than title because title is a global HTML attribute: observing it would give every card a browser tooltip of its own heading and have a screen reader read the name twice. text none declared Optional
tagline tagline, markup only One line under the title saying what the package is for. Clamped to two rendered lines so a long one cannot change a card’s height in a grid of them — the string is not truncated, only what is shown. text none declared Optional
publisher_name publisher-name, markup only Who publishes it, as a mono eyebrow above the title. Drawn as text, which is why the logo below is marked decorative rather than named again for a screen reader. text none declared Optional
publisher_logo publisher-logo, markup only The publisher’s logo URL — publisher.logo_url. This is the PUBLISHER’s mark, not artwork for the listing: Listing has no media, screenshot, gallery or hero column, so there is no per-listing image to show. Absent falls back to the package glyph, never a broken image. text none declared Optional
package_type package-type, markup only The package-type label, already resolved to its display form — the card does not map a picklist value to a label. Drawn as a neutral . text — recognises App, Object Pack, Field Pack, Calc Blueprint, Industry Template, AI Agent; anything else reads as drawn as given, in a neutral tag none declared Optional
pricing_label pricing-label, markup only The pricing label, already resolved — the card does not price anything or format a figure. Drawn as a second neutral beside the type. text — recognises Free, Paid, Usage-based; anything else reads as drawn as given, in a neutral tag none declared Optional
reviewed reviewed, markup only Whether a security review passed, from listing.review_badge. Shows a success pill reading “Reviewed”. Deliberately a boolean: the field behind it is the public projection of an operator-only status that a visitor must never read, and it cannot distinguish pending from flagged. Never source this from security_review_status. Unlike an ordinary HTML boolean attribute, a present value that spells out falsehood counts as FALSE rather than as present-and-therefore-true: a stored placement serialises through metadata as a string, and the failure that matters here badges an unreviewed package as reviewed. The off set is false, 0, no and off, compared after trimming and lowercasing, so “False”, “FALSE” and “ false “ are all off; any other present value, including an empty one, is on. boolean false Optional
href href, markup only The listing’s detail route, e.g. /listing/cloud-atlantis/sales-atlas. The whole card is this one link, so it takes focus and is announced as a link without anything else being arranged. An unmodified click raises caos-listing-select and THEN NAVIGATES NORMALLY unless a listener cancels that event, so a card placed on a page with no router still works as a link; a host that routes in-app calls preventDefault() on it to suppress the page load. A modified click is left entirely alone, so open-in-new-tab and copy-address still work. With no href the card draws, raises nothing, and does not navigate. The route must resolve to this workspace’s OWN ORIGIN: a relative path, or an absolute http/https URL on the same origin. Anything else is refused and the card behaves as though it had no href, on the anchor and in the event alike — a javascript:, data:, vbscript:, file: or mailto: value, and also any route that merely leaves the site, which includes another origin and the protocol-relative //host and backslash forms that resolve to one. Both halves are part of this input because the card follows the link itself when nothing routes it: the scheme rule stops a URL that executes, and the origin rule stops an open redirect on the surface a visitor judges a package from. text none declared Optional
rating_avg property only ACCEPTED AND DRAWN NOWHERE. The mean review rating, from listing.rating_avg. Declared so the input contract is settled before this card is placeable, because adding an input later is a breaking change against stored placements. Nothing writes that column yet — review aggregation is a separate ticket — so every listing would show an empty rating, which reads as “this one has none” rather than “there are none”. It will be drawn when a writer exists. number none declared Optional
install_count property only ACCEPTED AND DRAWN NOWHERE, for the same reason as rating_avg. From listing.install_count, whose own description says no writer exists: the Exchange package is metadata only and has no automation component, so the column is stored and unfilled. Declared now, rendered when something fills it. number none declared Optional
Name When it fires What it carries
caos-listing-select the card is activated by an unmodified click, or by Enter on the focused link. Not raised for a modified click, which the browser handles as an ordinary link so open-in-new-tab and copy-address keep working. { href, title } — enough for a host router to navigate without a page load. Bubbles and crosses the shadow boundary. CANCELABLE, and cancelling it is the contract: call preventDefault() to take the navigation, and the card suppresses the browser page load. Leave it alone and the link follows href as normal, so a card with no router is still a working link rather than an inert one.

Nothing goes inside this piece.

Design token What it controls
--caos-color-heat the border and focus ring on hover and focus — the ember. This is the second accent and not –caos-color-accent, which carries whatever primary hue the active brand sets and need not be warm at all. heat is a core token, defined by the default brand as well as any override, so reaching for it is not brand-coupling: a brand that moves heat moves this card with it. Neither token carries text here — accent can fall below the 4.5:1 AA floor — only a border and a ring.
--caos-color-surface the card face, against the carbon ground the media well uses.
--caos-color-bg the carbon ground behind the publisher’s mark, so the mark sits in a well rather than on the card face.
--caos-color-border the resting border, replaced by heat on hover and focus.

Nothing else drives this piece by calling it.

Nothing on this piece can be read back.

Part Which piece of it When it is there
::part(card) the anchor that is the whole card — the focusable, navigating element. Always
::part(media) the well holding the publisher’s mark, or the fallback glyph. Always
::part(publisher) the mono eyebrow naming the publisher. Always
::part(title) the listing name. Always
::part(tagline) the two-line summary under the title. Always
::part(chips) the bottom row: type tag, pricing tag, and the review pill. Always

When a visitor is choosing between packages and needs the publisher, the type, the price and whether it passed review before they click. For a record set that a person is working through rather than shopping, reach for CardGrid instead — its card is deliberately compact and it interchanges with DataTable, KanbanBoard and SplitView over the same records.

  • CardGrid — the cards are a view of a record set rather than a catalogue. CardGrid draws a name, a sub-line and up to two metrics, and the same records can be switched to a table, a kanban or a split view without re-authoring. This card is the opposite trade: more facts, one shape, and a marketplace’s vocabulary.
  • StatTile — the thing on the page is a figure rather than a thing to choose. A tile is a number with a label, not a link to a product.

The card is a single anchor, so it is focusable, reachable by Tab, and announced as a link without a role or a keydown handler. Its accessible name is its CONTENT, and the card sets no aria-label: aria-label would replace the name rather than shorten it, so naming the card with the title alone would stop the package type, the price, the review mark and the tagline being read as part of the link — which is most of what the visitor is choosing between. The announcement is longer for that reason and the length is the point. The publisher logo is alt=“” because the publisher name is already text in the card and would otherwise be read twice; the fallback glyph is aria-hidden for the same reason. The focus ring is on :focus-visible, so a pointer click does not leave one, and it is drawn as a transparent outline as well as a shadow so that forced-colors mode — which drops box-shadow — still shows one. An unattributed listing hides its publisher row rather than leaving an empty one. The host is responsible for one thing this piece cannot do: href must be a real route, because a card with no href still draws and is then a heading that looks clickable and is not.

Six listings, one per browsable category, as they read across a grid. Three carry the review pill and three do not, so it is visible as a difference rather than as a constant.

{
"id": "example",
"section": "One card per package type",
"columns": 1,
"items": [
{
"id": "listing_card_1",
"type": "component",
"key": "listing_card",
"inputs": {
"listing_title": "Sales Atlas",
"tagline": "Accounts, contacts, opportunities and orders in one application.",
"publisher_name": "Cloud Atlantis",
"package_type": "App",
"pricing_label": "Free",
"reviewed": true,
"href": "/listing/cloud-atlantis/sales-atlas"
}
},
{
"id": "listing_card_2",
"type": "component",
"key": "listing_card",
"inputs": {
"listing_title": "Service Objects",
"tagline": "Cases, entitlements and service contracts, with their layouts and list views.",
"publisher_name": "Cloud Atlantis",
"package_type": "Object Pack",
"pricing_label": "Free",
"reviewed": true,
"href": "/listing/cloud-atlantis/service-objects"
}
},
{
"id": "listing_card_3",
"type": "component",
"key": "listing_card",
"inputs": {
"listing_title": "Tax Rules",
"tagline": "A registered, versioned calculation other metadata can call.",
"publisher_name": "Cloud Atlantis",
"package_type": "Calc Blueprint",
"pricing_label": "Paid",
"reviewed": true,
"href": "/listing/cloud-atlantis/tax-rules"
}
},
{
"id": "listing_card_4",
"type": "component",
"key": "listing_card",
"inputs": {
"listing_title": "Field Service Starter",
"tagline": "A starting configuration for field service, meant to be edited after install.",
"publisher_name": "Cloud Atlantis",
"package_type": "Industry Template",
"pricing_label": "Free",
"href": "/listing/cloud-atlantis/field-service-starter"
}
},
{
"id": "listing_card_5",
"type": "component",
"key": "listing_card",
"inputs": {
"listing_title": "Address Verification",
"tagline": "Verification fields over the objects you already have.",
"publisher_name": "Cloud Atlantis",
"package_type": "Field Pack",
"pricing_label": "Free",
"href": "/listing/cloud-atlantis/address-verification"
}
},
{
"id": "listing_card_6",
"type": "component",
"key": "listing_card",
"inputs": {
"listing_title": "Atlantis AI",
"tagline": "An assistant grounded in the records it is allowed to read.",
"publisher_name": "Cloud Atlantis",
"package_type": "AI Agent",
"pricing_label": "Usage-based",
"href": "/listing/cloud-atlantis/atlantis-ai"
}
}
]
}
<caos-listing-card listing-title="Sales Atlas" tagline="Accounts, contacts, opportunities and orders in one application." publisher-name="Cloud Atlantis" package-type="App" pricing-label="Free" reviewed href="/listing/cloud-atlantis/sales-atlas"></caos-listing-card>
<caos-listing-card listing-title="Service Objects" tagline="Cases, entitlements and service contracts, with their layouts and list views." publisher-name="Cloud Atlantis" package-type="Object Pack" pricing-label="Free" reviewed href="/listing/cloud-atlantis/service-objects"></caos-listing-card>
<caos-listing-card listing-title="Tax Rules" tagline="A registered, versioned calculation other metadata can call." publisher-name="Cloud Atlantis" package-type="Calc Blueprint" pricing-label="Paid" reviewed href="/listing/cloud-atlantis/tax-rules"></caos-listing-card>
<caos-listing-card listing-title="Field Service Starter" tagline="A starting configuration for field service, meant to be edited after install." publisher-name="Cloud Atlantis" package-type="Industry Template" pricing-label="Free" href="/listing/cloud-atlantis/field-service-starter"></caos-listing-card>
<caos-listing-card listing-title="Address Verification" tagline="Verification fields over the objects you already have." publisher-name="Cloud Atlantis" package-type="Field Pack" pricing-label="Free" href="/listing/cloud-atlantis/address-verification"></caos-listing-card>
<caos-listing-card listing-title="Atlantis AI" tagline="An assistant grounded in the records it is allowed to read." publisher-name="Cloud Atlantis" package-type="AI Agent" pricing-label="Usage-based" href="/listing/cloud-atlantis/atlantis-ai"></caos-listing-card>

The same listing with and without the review pill. There is no third state to show: the field behind the pill is a boolean precisely so that pending and flagged cannot be told apart from outside.

{
"id": "example",
"section": "Reviewed, and not yet",
"columns": 1,
"items": [
{
"id": "listing_card_1",
"type": "component",
"key": "listing_card",
"inputs": {
"listing_title": "Sales Atlas",
"tagline": "Accounts, contacts, opportunities and orders in one application.",
"publisher_name": "Cloud Atlantis",
"package_type": "App",
"pricing_label": "Free",
"reviewed": true,
"href": "/listing/cloud-atlantis/sales-atlas"
}
},
{
"id": "listing_card_2",
"type": "component",
"key": "listing_card",
"inputs": {
"listing_title": "Sales Atlas",
"tagline": "Accounts, contacts, opportunities and orders in one application.",
"publisher_name": "Cloud Atlantis",
"package_type": "App",
"pricing_label": "Free",
"href": "/listing/cloud-atlantis/sales-atlas"
}
}
]
}
<caos-listing-card listing-title="Sales Atlas" tagline="Accounts, contacts, opportunities and orders in one application." publisher-name="Cloud Atlantis" package-type="App" pricing-label="Free" reviewed href="/listing/cloud-atlantis/sales-atlas"></caos-listing-card>
<caos-listing-card listing-title="Sales Atlas" tagline="Accounts, contacts, opportunities and orders in one application." publisher-name="Cloud Atlantis" package-type="App" pricing-label="Free" href="/listing/cloud-atlantis/sales-atlas"></caos-listing-card>

With no publisher-logo the media well draws the package glyph. The card keeps its shape, so a grid does not go ragged because one publisher has not uploaded a logo.

{
"id": "example",
"section": "A publisher with no mark",
"columns": 1,
"items": [
{
"id": "listing_card_1",
"type": "component",
"key": "listing_card",
"inputs": {
"listing_title": "Tax Rules",
"tagline": "A registered, versioned calculation other metadata can call.",
"publisher_name": "Cloud Atlantis",
"package_type": "Calc Blueprint",
"pricing_label": "Paid",
"reviewed": true,
"href": "/listing/cloud-atlantis/tax-rules"
}
}
]
}
<caos-listing-card listing-title="Tax Rules" tagline="A registered, versioned calculation other metadata can call." publisher-name="Cloud Atlantis" package-type="Calc Blueprint" pricing-label="Paid" reviewed href="/listing/cloud-atlantis/tax-rules"></caos-listing-card>