Metrics2

The Metrics2 component displays a section with a background image, a heading, and multiple counter blocks with numerical values and descriptions, adjusting layout based on screen size.

All available props for the Metrics2 component are defined and handled within Component usage path file. This allows for easy modifications to the content of the Metrics section.

Component path: src/blocks/metrics/Metrics2.tsx

Component usage path: src/app/blocks/metrics/metrics2/page.tsx

Preview link: https://www.saasable.io/blocks/metrics/metrics2

Props Details

Prop Name
Type
Description
Displayed as

heading

string

Main title of the metrics section.

"Our Key metrics"

bgImage

string (optional)

URL or path for the background image.

"/images/background.jpg"

blockDetail

Array of objects

Details for each counter block. Each object includes: - counter: number - caption: string - defaultUnit: string (optional)

[ { counter: 150, caption: "Clients", defaultUnit: "k" }, { counter: 75, caption: "Projects" }, { counter: 100, caption: "Awards" } ]

Last updated