Velocity X Components

Long-form

Share Rail

A share toolbar for a long-form page — X, LinkedIn, email and copy-link. Sticky in the left gutter on desktop where there's margin to spare, collapses to a horizontal bar next to the byline on mobile. Copy-link confirms via an accessible live region instead of a toast that only sighted users see.

Subscription Included with the Velocity Components subscription.
bash
$ velocityx add share-rail

Built for astro.

Full docs for Share Rail →

Needs a licence key — subscribe here, then velocityx loginonce.

astro v1.0.1
Share Rail

Props

NameTypeRequiredDefaultDescription
urlstringYes
titlestringYes

File this creates

The CLI writes this path into your project, relative to its root — nothing else moves.

text
components/velocity/share-rail/ShareRail.astro

Using the Share Rail component

Install it with velocityx add share-rail. The CLI writes the source straight into your project — no runtime dependency, no registry lock-in, and it themes itself from the same primary-*/accent-* scale as the rest of the library.

More from Long-form.