Fine-tune light, shadows, borders, neumorphic
Light and shadows
Borders
Neumorphic
Display

Card <pm-card>

Card container that renders the active surface style.

Full screen
Mountains at sunset

Two nights in a mountain hut and a glacier walk.

€ 420 Details Book
Ada LovelaceDesign lead

Leads the token pipeline and reviews every new component before it ships.

Message Follow

Shared workspaces, SSO and priority support. Compare plans

Props

<script type="module"> import '@prismora/css'; import '@prismora/elements/avatar'; import '@prismora/elements/button'; import '@prismora/elements/card'; import { registerIcons } from '@prismora/elements/icon'; import { moreHorizontal, userPlus } from '@prismora/icons'; registerIcons([moreHorizontal, userPlus]); </script> <pm-card heading="Alpine weekend" description="3 days in Chamonix, guide included." style="inline-size: min(100%, 16rem)"> <img slot="media" src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 90'%3E%3Cdefs%3E%3ClinearGradient id='g' x2='1' y2='1'%3E%3Cstop stop-color='%237c5cff'/%3E%3Cstop offset='1' stop-color='%23ff7ab6'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='160' height='90' fill='url(%23g)'/%3E%3Ccircle cx='118' cy='30' r='14' fill='%23fff' opacity='.85'/%3E%3Cpath d='M0 90l45-48 30 30 22-18 63 36z' fill='%23fff' opacity='.35'/%3E%3C/svg%3E" alt="Mountains at sunset"> <p>Two nights in a mountain hut and a glacier walk.</p> <strong slot="footer" style="margin-inline-end: auto">€ 420</strong> <pm-button slot="footer" variant="ghost" tone="neutral" size="sm">Details</pm-button> <pm-button slot="footer" size="sm">Book</pm-button> </pm-card> <pm-card style="inline-size: min(100%, 16rem)"> <div slot="header" class="pm-cluster" style="flex-wrap: nowrap"> <pm-avatar name="Ada Lovelace"></pm-avatar> <div class="pm-stack pm-grow" style="--pm-gap: 0"> <strong>Ada Lovelace</strong> <span class="pm-muted pm-text-sm">Design lead</span> </div> <pm-button variant="ghost" tone="neutral" size="sm" icon icon-start="more-horizontal" label="More actions"></pm-button> </div> <p>Leads the token pipeline and reviews every new component before it ships.</p> <pm-button slot="footer" variant="outline" tone="neutral" size="sm">Message</pm-button> <pm-button slot="footer" size="sm" icon-start="user-plus">Follow</pm-button> </pm-card> <pm-card interactive heading="Team plan" description="Everything in Pro, for up to 20 people." style="inline-size: min(100%, 16rem)"> <p> Shared workspaces, SSO and priority support. <a href="/docs">Compare plans</a> </p> </pm-card>

Attributes

AttributeTypeDefaultDescription
headingstring—Title text.
descriptionstring—Supporting text under the title.
size'sm' | 'md'—Size: sm or md (md when not set).
interactiveboolean—Hover and press feedback for cards that act as one big link or button.

Also accepts the contextual attributes tone, surface, radius, density, motion, elevation. They are inherited from ancestors' data-* attributes.

Slots

SlotDescription
mediaFull-bleed image/video at the top.
headerCustom header (overrides heading/description).
(default)Body.
footerActions.

CSS parts

PartDescription
::part(base)The card container.
::part(media)The box around the media.
::part(header)The header.
::part(title)The heading text.
::part(description)The description text.
::part(body)The body: the part that scrolls in a card with a limited height.
::part(footer)The footer.

Used in templates

Overview dashboardTraffic analyticsOrdersCustomer 360InboxTeam chatAI assistantNotificationsProject boardTeam and rolesBilling and invoicesUser profileAccount settingsPricing plansProduct pageShopping cartCheckoutLanding pageArticleChangelogHelp centreContactComing soonNot found (404)Server error (500)Onboarding wizardAppointment bookingFeedback survey