Skip to content
ProLifetime access for $199, paid once, every future release included
Truffle UI

Feature sections

7 examples. Resize any preview to see it at phone and tablet widths.

Feature Tabs

Pro

A vertical tab list that advances on a timer with a dwell indicator, pauses on hover and focus, and cross-fades a detail panel.

The source for this block is part of Truffle Pro.

Feature Grid

Free

Six features in a ruled grid that collapses from three columns to one, with icon tiles that respond to hover.

Hide code
components/blocks/features-grid.tsx
import { Boxes, Gauge, KeyRound, Languages, RefreshCcw, Webhook } from "lucide-react";

const features = [
  { icon: Gauge, title: "Fast on a slow phone", body: "Pages are measured on a mid-range Android over 4G, and the budget is enforced on every deploy." },
  { icon: KeyRound, title: "Single sign-on included", body: "SAML and OIDC on every plan, with directory sync for teams that outgrow invites." },
  { icon: Webhook, title: "Webhooks you can replay", body: "Every delivery is logged for 30 days. Send any of them again with one click." },
  { icon: Languages, title: "Thirty-four locales", body: "Dates, numbers and plurals follow the reader. Right-to-left layouts mirror on their own." },
  { icon: RefreshCcw, title: "Zero-downtime upgrades", body: "Schema changes run alongside the old version, then switch over when the data is ready." },
  { icon: Boxes, title: "Bring your own storage", body: "Keep files in your bucket and your region. We store the pointer, not the payload." },
];

export default function FeaturesGrid() {
  return (
    <section className="w-full px-6 py-16 sm:px-10 sm:py-20">
      <div className="mx-auto max-w-5xl">
        <div className="grid gap-4 md:grid-cols-2 md:items-end">
          <h2 className="text-balance text-3xl font-semibold tracking-[-0.035em] sm:text-4xl">The parts you would have built anyway.</h2>
          <p className="max-w-md text-pretty leading-relaxed text-muted-foreground md:justify-self-end">Six things every product ends up needing in its second year. They are here from the first day.</p>
        </div>
        {/* One pixel gaps over a border-colored background draw the rules, so they stay crisp at every column count. */}
        <ul className="mt-10 grid gap-px overflow-hidden rounded-xl border border-border bg-border sm:grid-cols-2 lg:grid-cols-3">
          {features.map(({ icon: Icon, title, body }) => (
            <li key={title} className="group bg-background p-6 transition-colors duration-150 hover:bg-muted/40">
              <span className="grid size-9 place-items-center rounded-lg border border-border bg-card text-muted-foreground transition-colors duration-150 group-hover:border-foreground/30 group-hover:text-foreground">
                <Icon className="size-4" aria-hidden />
              </span>
              <h3 className="mt-5 font-medium tracking-tight">{title}</h3>
              <p className="mt-1.5 text-pretty text-sm leading-relaxed text-muted-foreground">{body}</p>
            </li>
          ))}
        </ul>
      </div>
    </section>
  );
}

Feature Bento

Pro

A bento grid with a live globe and a progress ring as feature visuals.

The source for this block is part of Truffle Pro.

How It Works

Free

Three numbered steps joined by a rule that runs down the side on phones and across the top on wider screens, each with how long it takes.

Integrations Grid

Pro

Integrations as cards with a category filter, a search and a connect button that confirms in place.

The source for this block is part of Truffle Pro.

Practice Areas

Pro

Eight practice groups in a ruled grid, each a single link with an icon, a line on the work, the size of the team and its ranking band.

The source for this block is part of Truffle Pro.

Alternating Features

Free

Three features in rows that swap sides, each with an eyebrow, a heading, a paragraph, three checked points, a link and a product picture. The text stays first in reading order on every row.