Publishing sectionsArticleHeader

Open in Create
Search
astronomic.dev

ArticleHeader

Free

To build your own post header: the topic, date and reading time, the title, a line under it, a byline and a photo. For a ready layout, use ArticleHeaderPlain or ArticleHeaderCover.

File
ArticleHeader.astro
Group
Publishing sections
Kind
Static: no JavaScript
Examples
1
import ArticleHeader from "@astronomic-dev/ui/components/ArticleHeader.astro";

Examples

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

  • Static
  • Interactive
  • Framed

Slots

The header is a shell: the meta line (the topic pill, then the date, series and reading time), the title, the standfirst and the byline slot always show in that order, then the media slot. Here contentClass puts the photo beside the text from a 48rem header. ArticleHeaderPlain is the free recipe built on it; Pro adds ArticleHeaderCover.

main.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.