Data displayPostRow

Open in Create
Search
astronomic.dev

PostRow

Free

For one post as a row: its date, title, excerpt and topic. PostList uses it for you.

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

Examples

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

  • Static
  • Interactive
  • Framed

In a Posts list

Two posts, each a PostRow in an <li>, on hairlines; the last row adds border-b-ui to close the list. From a 42rem posts container the date takes its own start column beside the title, the excerpt and the topic; below that it sits above the title. The second post has no excerpt, and dateLabel prints "Updated last week" in place of the date, while the <time> keeps the real date. PostList builds its rows from it, so you only need it for your own layout.

Recent writing

Force state
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.