All-Access · 22 templates$1270.97$99/year — save 92%Get access
  • HomeHome
  • TemplatesTemplates23
  • ComponentsComponents78
  • PricingPricing
  • Need a Website?Need a Website?New
Unlock All AccessUnlock All Access

Our latest template collection

Ready-to-launch sites for real estate agents, service businesses, and local brands — built to rank, load fast, and convert.

Explore All TemplatesExplore All Templates

Orvaine - Luxury Equestrian & Horse Breeding Website Template

Orvaine is a premium website template for stud farms, sport horse breeders and equestrian estates: horse pages with pedigrees, events, films. Next.js, Astro, Sanity.

Download Template
Orvaine - Luxury Equestrian & Horse Breeding Website Template

Maressa - Luxury Yacht Charter & Sales Website Template

Maressa is a premium website template for yacht charter, brokerage and superyacht brands: 21 editable sections, full-screen films, Next.js and Astro versions. Sanity.

Download Template
Maressa - Luxury Yacht Charter & Sales Website Template

Krishi – Agriculture & Farm Website Template

Krishi is a premium website template for farms, agritech and food brands: 17 editable sections, cinematic GSAP motion and both Next.js and Astro versions. Built with Sanity.

Download Template
Krishi – Agriculture & Farm Website Template
ComponentsFeature

Dark Feature Tabs

View code
Full screen

Large uppercase tabs on the left with the open tab's heading, text and highlighted stats on the right. React and Tailwind CSS, accessible tablist.

DarkFeatureTabs.tsx
"use client";

// Dark feature tabs: large uppercase tab labels on the left, the open tab's
// heading, text and stats on the right. Accessible tablist.
// Pure Tailwind + React, no dependencies. Works with Tailwind v3 and v4.

import { useState } from "react";

type Tab = { label: string; heading: string; text: string; stats: { value: string; label: string }[] };

type Props = {
  tabs?: Tab[];
};

const DEFAULT_TABS: Tab[] = [
  { label: "Range", heading: "Go further on a single charge", text: "A 98 kWh battery and an efficient drivetrain take you city to coast without a stop.", stats: [{ value: "610 km", label: "WLTP range" }, { value: "18 min", label: "10–80% charge" }] },
  { label: "Power", heading: "Instant, effortless torque", text: "Dual motors deliver smooth power from standstill and confident overtaking at speed.", stats: [{ value: "523 hp", label: "Combined output" }, { value: "3.9 s", label: "0–100 km/h" }] },
  { label: "Comfort", heading: "Quiet, calm and roomy", text: "Acoustic glass, adaptive air suspension and heated seats in every row.", stats: [{ value: "7", label: "Seats" }, { value: "780 L", label: "Boot space" }] },
];

export default function FeatureTabs({ tabs = DEFAULT_TABS }: Props) {
  const [active, setActive] = useState(0);
  const tab = tabs[active];
  if (!tab) return null;

  return (
    <section className="bg-[#1f1f1d] px-4 py-20 font-['Inter',ui-sans-serif,system-ui,sans-serif] text-white antialiased md:px-8 md:py-36">
      <div className="mx-auto grid max-w-5xl gap-12 md:grid-cols-2 md:gap-8">
        <div role="tablist" aria-label="Features" className="max-w-[25rem]">
          {tabs.map((t, i) => (
            <button
              key={t.label}
              id={`feature-tab-${i}`}
              type="button"
              role="tab"
              aria-selected={i === active}
              aria-controls={`feature-panel-${i}`}
              onClick={() => setActive(i)}
              className={`flex h-20 w-full items-center border-b border-white/30 text-left font-['Prompt',ui-sans-serif,system-ui,sans-serif] text-4xl uppercase transition-all duration-300 md:h-32 md:text-6xl ${
                i === active ? "pl-12 text-white" : "text-white/30 hover:text-white/60"
              }`}
            >
              {t.label}
            </button>
          ))}
        </div>

        <div id={`feature-panel-${active}`} role="tabpanel" aria-labelledby={`feature-tab-${active}`}>
          <h2 className="font-['Prompt',ui-sans-serif,system-ui,sans-serif] text-3xl font-semibold uppercase md:text-4xl">{tab.heading}</h2>
          <p className="mt-5 text-white/80">{tab.text}</p>
          <dl className="mt-10 grid grid-cols-[auto_1fr] gap-x-8 gap-y-8">
            {tab.stats.map((stat) => (
              <div key={stat.label} className="flex min-w-[9rem] flex-col-reverse gap-1">
                <dt className="text-lg text-white/70">{stat.label}</dt>
                <dd className="font-['Prompt',ui-sans-serif,system-ui,sans-serif] text-3xl font-semibold text-[#ffdc2a] md:text-4xl">{stat.value}</dd>
              </div>
            ))}
          </dl>
        </div>
      </div>
    </section>
  );
}

How to use it

  1. Make sure your Next.js or React project has Tailwind CSS set up (v3 or v4 both work).
  2. Create components/DarkFeatureTabs.tsx and paste the code.
  3. Import it into a page and replace the sample text and images with your own.
Drivoo Automotive Website Template

From the full template

Drivoo Automotive Website Template$49

Every page, Sanity CMS and SEO already set up. This section is one of 2 you can try free.

Get the full template Get the full template Live preview Live preview
Share
Category
Features
Template
Drivoo Automotive Website Template
Dependencies
None, just React
Works with
Next.js, React, Tailwind CSS v3 & v4
Added
Oct 29, 2026

More from Drivoo Automotive Website Template

See the full template
Spotlight Photo with Card
Feature

Spotlight Photo with Card

More features

View all
Alternating Feature Rows
Feature

Alternating Feature Rows

Awards Checkerboard
Feature

Awards Checkerboard

Class Timetable
Feature

Class Timetable

Ready for a faster site that's easier to edit?

Book a free 30-minute call. We'll review your current site and send a fixed-price plan. No pressure, no pitch.

Book Free Call Book Free Call No commitment required

Fast Next.js + Sanity websites, built for you or ready to launch with our templates.

Book a Free Call Book a Free Call
Services
  • Web Design
  • UI/UX Design
  • Framer Dev
  • Webflow Dev
  • Custom Dev
  • Sanity CMS
Resources
  • Templates
  • Pricing
  • License
  • Components
  • Case Studies
Company
  • About Us
  • Contact
  • Privacy Policy
© 2026 rayso.studio — All rights reservedDesigned & built in-house Remote-first agency
Let's TalkLet's Talk