DDBS UI
product

Product Detail Tabs

Underlined tabs for description, specs and delivery, with arrow key, Home and End navigation and a labelled panel.

npx shadcn@latest add https://ui.develop-better-solutions.com/r/product-detail-tabs.json
Fullscreen

Solid oak frame, hand-finished with a hard wax oil. The curved back follows the spine and the seat is filled with cold-cure foam.

Usage

product-detail-tabs-example.tsx
import { ProductDetailTabs } from "@dbs/ui";

export default function ProductDetailTabsExample() {
  return (
    <div className="w-full max-w-2xl">
      <ProductDetailTabs
        tabs={[
          { id: "desc", label: "Description", content: <p>Solid oak frame, hand-finished with a hard wax oil. The curved back follows the spine and the seat is filled with cold-cure foam.</p> },
          { id: "specs", label: "Specs", content: <ul className="list-disc space-y-1 pl-5"><li>Width 64 cm, depth 58 cm, height 82 cm</li><li>Seat height 46 cm</li><li>Net weight 6.2 kg</li></ul> },
          { id: "delivery", label: "Delivery", content: <p>In stock pieces ship in 2 to 4 days. Free delivery over 1,500 MAD.</p> },
        ]}
      />
    </div>
  );
}