Data displayCardResult

Open in Create
Search
astronomic.dev

CardResult

Pro

For case studies and other proof: a photo, a short label, the title and one result shown large, like “−34% lead time”.

File
CardResult.astro
Group
Data display
Kind
Static: no JavaScript
Examples
4
import CardResult from "@astronomic/ui-pro/components/CardResult.astro";

Examples

Drag the orange handle to set the width. Frames get real breakpoints.

  • Static
  • Interactive
  • Framed

A case study

One linked card: a click anywhere opens the case study. The result sits on a hairline under the title, in the stat role, sized to the card.

Force state
main.astro

Open on the page

With card={false}: no fill, edge or padding, the photo with media corners. The same order and the same one link.

Force state
open.astro

A row of case studies

Three cards in a list under the section's h2 (SectionHead; each title is an h3), as many columns as fit, each at least 18rem, with a sizes hint for the row (gridImageSizes(3)). Each card fills its row, so the results line up.

grid.astro

A long figure in a narrow card

In a 20rem column, $12,500,000+ (wider than the role's default room) shrinks to stay on one line, and the long label wraps under it.

Force state
long-figure.astro
Minimal · Light

Waitlist

Be first in line

Join the waitlist and we'll email you the moment it's out.

You'll also get our newsletter: new themes, plugins and guides. Unsubscribe any time.