"How it works" steps in React
Three numbered steps joined by a line, to explain a simple journey.
Here is an excerpt of this component's code in React. The full code is free for members, ready to copy into your project.
This component also comes in
The code in React
export function NumberedSteps() {
return (
<section className="mx-auto w-[min(100%_-_2rem,60rem)] py-8">
<section>
<h2 className="mb-8 text-center text-3xl font-bold md:text-4xl">Comment ça marche</h2>
<ol className="grid [counter-reset:step] gap-7 md:grid-cols-3 md:gap-8">
<li className="relative pl-16 [counter-increment:step] before:absolute before:top-0 before:left-0 before:z-10 before:grid before:size-11 before:place-items-center before:rounded-full before:bg-orange-700 before:font-extrabold before:text-white before:content-[counter(step)] md:pt-16 md:pl-0 md:text-center md:before:left-1/2 md:before:-translate-x-1/2 dark:before:bg-orange-400 dark:before:text-[#2a1204] after:absolute after:top-11 after:-bottom-7 after:left-5 after:w-[3px] after:bg-orange-300 after:content-[''] md:after:top-5 md:after:bottom-auto md:after:left-[calc(50%_+_1.375rem)] md:after:h-[3px] md:after:w-[calc(100%_+_2rem_-_2.75rem)] dark:after:bg-[#7c3a12]">
<h3 className="my-1.5 text-lg font-bold">Choisissez votre panier</h3>
<p className="leading-relaxed text-[#7a4a26] dark:text-orange-300">
Légumes seuls, fruits et légumes ou formule famille, à partir de 14 € la semaine.
</p>
</li>Free component: copy it freely, including for commercial projects.
Other features components in React
Features components in React
Three cards in saturated flat colours (yellow, pink, electric blue) with high-contrast text and a dark variant. Every colour pair is measured at AA: 5.5:1 at worst.
- Tailwind
- React
- CSS
- WordPress

Six features as frosted glass cards over a slowly drifting aurora mesh gradient. Pause button, still background under prefers-reduced-motion, CSS and a light script.
- Tailwind
- React
- CSS
- WordPress

The key message stays pinned while the background changes colour and illustration at each scroll step. CSS sticky, a light script, stacked cards as fallback under prefers-reduced-motion.
- Tailwind
- React
- CSS
- WordPress

A six-cell bento grid: key figures, SVG sparklines, a quote and icons. All the text is in the HTML and the animation is CSS only, with no script at all.
- Tailwind
- React
- CSS
- WordPress

A two-offer table: checked rows, a column highlighted from top to bottom and one call-to-action button per offer. Pure HTML and CSS, no script at all.
- Tailwind
- React
- CSS
- WordPress

A magazine-style article: title band, standfirst, drop cap, subheadings and a pull quote, set in three columns of equal height. Pure CSS, no script at all.
- Tailwind
- React
- CSS
- WordPress