Data displayByline

Open in Create
Search
astronomic.dev

Byline

Free

Under a post's title: who wrote it, with their photo, the date and the reading time.

File
Byline.astro
Group
Data display
Kind
Static: no JavaScript
Examples
5
import Byline from "@astronomic-dev/ui/components/Byline.astro";

Examples

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

  • Static
  • Interactive
  • Framed

One writer

The photo, the name (a link to the writer's page), then the date, the reading time and the series, small and muted. Put it in ArticleHeaderPlain's byline slot, or under ArticleHeaderCover.

main.astro

Two writers

The names join in the locale's list style ("Ada Brook and Lena Ruiz"), each its own link; the photos overlap by a quarter. With more than three writers, three marks show and a round +N mark after them.

two-authors.astro

No photo

A writer without a photo gets their initials in its place (the same rule as Avatar), so the row keeps its shape.

no-photo.astro

Five writers

Five writers with long names: three photos, then a round +2 mark; every name is its own link, and the names wrap inside the box.

many-authors.astro

With actions

Your own control in the actions slot, at the end of the row (here a share button: the kit ships no share script), and a hairline under the row through class. The actions wrap under the names, still at the end of the row, only when the marks, a 10rem name column and the actions do not fit side by side.

with-actions.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.