Publishing sectionsStoryRail

Open in Create
Search
astronomic.dev

StoryRail

Pro

At the top of a home page that leads with many stories at once: a row of tall photo cards that scrolls sideways, each opening to show its summary.

File
StoryRail.astro
Group
Publishing sections
Kind
Interactive: inline script
Examples
3
import StoryRail from "@astronomic/ui-pro/components/StoryRail.astro";

Examples

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

  • Static
  • Interactive
  • Framed

Eight stories

Tall photo cards in a row that scrolls sideways and snaps to each card. The first card starts open, wider, with its summary; the pointer or focus opens another. The arrows scroll by card.

main.astro

Three stories

Nothing to scroll in a wide rail: both arrows end disabled.

few.astro

Edge to edge

Outside the Container: headerClass gives the heading row the container's classes, and listClass a start padding and scroll padding that line the first card up with it, so the rail runs to the window's edge.

full-bleed.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.