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.
Options
Section titled “Options”posts: list of{ title, href, excerpt, tag, date, datetime, image, imageAlt }columns:2,3(default),4layout: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;categoriesLabelnames the navpagination: props for Pagination,{ current, total, href, variant, shown, of };variantisnumberedorload-moresurface:light,alternate,brand,darkeyebrow,title,intro: SectionHeader; theactionslot 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>Notes
Resources