Skip to content

Service price list in React

A menu-style price list grouped by service family, with dot leaders.

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

Open in a new tab

The code in React

ServicePriceList.tsx
export function ServicePriceList() {
  return (
    <div className="mx-auto w-[min(100%_-_2rem,36rem)] py-8">
      <section className="not-first:mt-10">
        <h2 className="mb-4 font-serif text-3xl text-[#a21152] dark:text-[#f9a8c9]">Coupes</h2>
        <dl className="grid gap-3.5">
          <div className="flex items-baseline gap-2 after:order-1 after:min-w-6 after:flex-1 after:border-b-2 after:border-dotted after:border-[#d8a6b9] dark:after:border-[#6b3247]">
            <dt>Coupe femme, shampoing et brushing</dt>
            <dd className="order-2 font-bold whitespace-nowrap">48 €</dd>
          </div>
          <div className="flex items-baseline gap-2 after:order-1 after:min-w-6 after:flex-1 after:border-b-2 after:border-dotted after:border-[#d8a6b9] dark:after:border-[#6b3247]">
            <dt>Coupe homme</dt>

Free component: copy it freely, including for commercial projects.

Pricing tables components in React
  • A table comparing what each license includes: update and support length, response time, number of sites, client hand-over. A switch extends support and updates the prices.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • Three one-time payment licenses, what each one allows line by line (client site, number of sites, resale) and the recommended plan highlighted.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A session pack grid that computes the price per session and the money saved, with an optional reduced rate.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • Service cards with “from” prices, duration and a quote request button, filterable by family.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • Three plans side by side, the middle one highlighted.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component