Velocity X Components

Marketing & Social Proof

Before/After Results Panel

Static side-by-side before/after metric comparison panel, not an image slider.

Subscription Included with the Velocity Components subscription.
bash
$ velocityx add results-before-after-panel

Built for astro.

Full docs for Before/After Results Panel →

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

astro v1.0.0
Before/After Results Panel

Placeholder

Sample before / after

Before

After

XX Sample metric one
XX Sample metric one
XX% Sample metric two
XX% Sample metric two
XX days Sample metric three
XX days Sample metric three

Props

NameTypeRequiredDefaultDescription
eyebrowstringNo
titlestringNo
headingLevel1 | 2 | 3 | 4 | 5 | 6No2
beforeLabelstringNo'Before'
afterLabelstringNo'After'
metricsArray<{ label: string; before: string; after: string }>Yes
classNamestringNo''

File this creates

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

text
components/velocity/results-before-after-panel/ResultsBeforeAfterPanel.astro

Using the Before/After Results Panel component

Install it with velocityx add results-before-after-panel. 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 Marketing & Social Proof.