Skip to content

Content listing

Each card is one link, with an image, tag, title, excerpt and date. Category links and Pagination are plain links, so filtering and paging happen on the server.

Latest notes

Decisions and changes in the library.

  • posts: list of { title, href, excerpt, tag, date, datetime, image, imageAlt }
  • columns: 2, 3 (default), 4
  • layout: columns (default), stacked (list rows with a thumbnail)
  • featured: the first post spans wider and turns sideways (data-featured)
  • categories: list of { label, href, current } shown as filter links; categoriesLabel names the nav
  • pagination: props for Pagination, { current, total, href, variant, shown, of }; variant is numbered or load-more
  • surface: light, alternate, brand, dark
  • eyebrow, title, intro: SectionHeader; the action slot sits beside it
<ContentListing
title="Latest notes"
posts={posts}
categories={[
{ label: "All", href: "/notes/", current: true },
{ label: "Tokens", href: "/notes/tokens/" },
]}
pagination={{ current: 1, total: 8, href: "/notes/page/{page}/" }}
>
<Button slot="action" href="/notes/" variant="outline">View all</Button>
</ContentListing>
featured, categories, numbered pagination

Notes

layout="stacked" with load more, surface="alternate"

From the notes

Showing 4 of 12

Load more
columns="4"

Resources

Guides

columns="2" featured

Featured notes