# Custom Builder

> A plan builder where buyers pick features and quantities to assemble a quote. Use it for modular products where every customer needs a different mix.

A shadcn/ui block from the [@shadcn-ui-blocks](https://www.shadcn-ui-blocks.com) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/shadcn-ui-blocks/marketing-pricing-sections-custom-builder).

- Page, with a live preview: https://shadcn.exchange/r/shadcn-ui-blocks/marketing-pricing-sections-custom-builder
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/shadcn-ui-blocks/marketing-pricing-sections-custom-builder-light-b448a2dc7808ed9c.png
- Registry item: https://www.shadcn-ui-blocks.com/r/marketing-pricing-sections-custom-builder.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://www.shadcn-ui-blocks.com/r/marketing-pricing-sections-custom-builder.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- npm packages: `class-variance-authority`, `lucide-react`, `radix-ui`

## Files

### `components/blocks/marketing/pricing-sections/custom-builder.tsx`

```tsx
import { useState } from 'react';

import { Button } from '@/components/ui/button';
import {
  Card,
  CardContent,
  CardFooter,
  CardHeader,
  CardTitle,
} from '@/components/ui/card';
import { Checkbox } from '@/components/ui/checkbox';
import { Label } from '@/components/ui/label';
import { Tabs, TabsList, TabsTrigger } from '@/components/ui/tabs';
import { CheckIcon, PlusIcon, MinusIcon } from 'lucide-react';
import { cn } from '@/lib/utils';

// Base plans
const basePlans = [
  {
    name: 'Starter',
    basePrice: 29,
    description: 'Essential features for individuals',
    includedUsers: 1,
    includedStorage: 10,
    includedProjects: 5,
    features: ['Basic analytics', 'Email support', 'API access (100 req/day)'],
  },
  {
    name: 'Business',
    basePrice: 79,
    description: 'Advanced features for teams',
    includedUsers: 5,
    includedStorage: 50,
    includedProjects: 20,
    features: [
      'Advanced analytics',
      'Priority support',
      'API access (1,000 req/day)',
      'Team collaboration',
      'Custom domains',
    ],
    popular: true,
  },
  {
    name: 'Enterprise',
    basePrice: 199,
    description: 'Complete solution for organizations',
    includedUsers: 20,
    includedStorage: 200,
    includedProjects: 100,
    features: [
      'Enterprise analytics',
      '24/7 phone support',
      'API access (10,000 req/day)',
      'Team collaboration',
      'Custom domains',
      'SSO authentication',
      'Custom integrations',
      'Dedicated account manager',
    ],
  },
];

// Add-ons
const addOns = [
  {
    id: 'additional-users',
    name: 'Additional Users',
    description: 'Add more users to your plan',
    pricePerUnit: 10,
    unit: 'user',
  },
  {
    id: 'additional-storage',
    name: 'Additional Storage',
    description: 'Add more storage to your plan',
    pricePerUnit: 5,
    unit: '10GB',
  },
  {
    id: 'premium-support',
    name: 'Premium Support',
    description: 'Get faster response times and dedicated support',
    price: 49,
  },
  {
    id: 'custom-training',
    name: 'Custom Training',
    description: 'Personalized training sessions for your team',
    price: 199,
  },
];

export default function PricingSectionCustomBuilder() {
  const [selectedPlan, setSelectedPlan] = useState(basePlans[1]!);
  const [additionalUsers, setAdditionalUsers] = useState(0);
  const [additionalStorage, setAdditionalStorage] = useState(0);
  const [selectedAddOns, setSelectedAddOns] = useState<string[]>([]);
  const [billingPeriod, setBillingPeriod] = useState<'monthly' | 'annually'>(
    'monthly'
  );

  // Calculate total price
  const calculateTotalPrice = () => {
    let total = selectedPlan.basePrice;

    // Add cost for additional users
    total += additionalUsers * 10;

    // Add cost for additional storage
    total += additionalStorage * 5;

    // Add cost for selected add-ons
    selectedAddOns.forEach((id) => {
      const addOn = addOns.find((a) => a.id === id);
      if (addOn && addOn.price) {
        total += addOn.price;
      }
    });

    // Apply annual discount
    if (billingPeriod === 'annually') {
      total = total * 12 * 0.8; // 20% discount
    }

    return total;
  };

  // Toggle add-on selection
  const toggleAddOn = (id: string) => {
    setSelectedAddOns((prev) =>
      prev.includes(id) ? prev.filter((item) => item !== id) : [...prev, id]
    );
  };

  // Format price with commas
  const formatPrice = (price: number) => {
    return price.toLocaleString('en-US', {
      style: 'currency',
      currency: 'USD',
      minimumFractionDigits: 0,
      maximumFractionDigits: 0,
    });
  };

  return (
    <section className="w-full py-12 md:py-24 lg:py-32">
      <div className="container mx-auto px-4 md:px-6 2xl:max-w-[1400px]">
        <div className="flex flex-col items-center justify-center space-y-4 text-center">
          <div className="space-y-2">
            <h2 className="text-3xl font-bold tracking-tighter sm:text-4xl md:text-5xl">
              Build Your Perfect Plan
            </h2>
            <p className="text-muted-foreground mx-auto max-w-[700px] md:text-xl/relaxed">
              Customize your plan to fit your exact needs. Only pay for what you
              use.
            </p>
          </div>
        </div>

        <div className="mx-auto mt-12 max-w-6xl">
          <Tabs
            defaultValue="monthly"
            className="w-full"
            onValueChange={(value) =>
              setBillingPeriod(value as 'monthly' | 'annually')
            }
          >
            <div className="flex justify-center">
              <TabsList className="mb-8">
                <TabsTrigger value="monthly">Monthly</TabsTrigger>
                <TabsTrigger value="annually">Annually (Save 20%)</TabsTrigger>
              </TabsList>
            </div>

            <div className="grid gap-8 md:grid-cols-2">
              <div className="space-y-8">
                <div>
                  <h3 className="mb-4 text-lg font-medium">
                    1. Choose your base plan
                  </h3>
                  <div className="grid gap-4 sm:grid-cols-3">
                    {basePlans.map((plan) => (
                      <Card
                        key={plan.name}
                        className={cn(
                          'hover:border-primary cursor-pointer transition-all',
                          selectedPlan.name === plan.name &&
                            'border-primary bg-primary/5',
                          plan.popular && !selectedPlan && 'border-primary'
                        )}
                        onClick={() => setSelectedPlan(plan)}
                      >
                        <CardHeader className="pb-3">
                          <CardTitle className="text-lg">{plan.name}</CardTitle>
                        </CardHeader>
                        <CardContent>
                          <div className="text-2xl font-bold">
                            {formatPrice(plan.basePrice)}
                            <span className="text-muted-foreground text-sm font-normal">
                              /{billingPeriod === 'monthly' ? 'mo' : 'yr'}
                            </span>
                          </div>
                          <p className="text-muted-foreground mt-1 text-xs">
                            {plan.description}
                          </p>
                          <div className="mt-3 space-y-1 text-xs">
                            <div className="flex justify-between">
                              <span>Users</span>
                              <span>{plan.includedUsers}</span>
                            </div>
                            <div className="flex justify-between">
                              <span>Storage</span>
                              <span>{plan.includedStorage}GB</span>
                            </div>
                            <div className="flex justify-between">
                              <span>Projects</span>
                              <span>{plan.includedProjects}</span>
                            </div>
                          </div>
                        </CardContent>
                      </Card>
                    ))}
                  </div>
                </div>

                <div>
                  <h3 className="mb-4 text-lg font-medium">
                    2. Customize your plan
                  </h3>
                  <Card className="p-0">
                    <CardContent className="space-y-6 py-6">
                      <div>
                        <div className="mb-2 flex items-center justify-between">
                          <Label>Additional Users</Label>
                          <div className="flex items-center gap-2">
                            <Button
                              variant="outline"
                              size="icon"
                              className="h-6 w-6"
                              onClick={() =>
                                setAdditionalUsers(
                                  Math.max(0, additionalUsers - 1)
                                )
                              }
                              disabled={additionalUsers === 0}
                            >
                              <MinusIcon className="h-3 w-3" />
                            </Button>
                            <span className="w-8 text-center">
                              {additionalUsers}
                            </span>
                            <Button
                              variant="outline"
                              size="icon"
                              className="h-6 w-6"
                              onClick={() =>
                                setAdditionalUsers(additionalUsers + 1)
                              }
                            >
                              <PlusIcon className="h-3 w-3" />
                            </Button>
                          </div>
                        </div>
                        <div className="text-muted-foreground text-xs">
                          ${addOns[0]!.pricePerUnit} per additional user per
                          month
                        </div>
                      </div>

                      <div>
                        <div className="mb-2 flex items-center justify-between">
                          <Label>Additional Storage</Label>
                          <div className="flex items-center gap-2">
                            <Button
                              variant="outline"
                              size="icon"
                              className="h-6 w-6"
                              onClick={() =>
                                setAdditionalStorage(
                                  Math.max(0, additionalStorage - 1)
                                )
                              }
                              disabled={additionalStorage === 0}
                            >
                              <MinusIcon className="h-3 w-3" />
                            </Button>
                            <span className="w-8 text-center">
                              {additionalStorage}
                            </span>
                            <Button
                              variant="outline"
                              size="icon"
                              className="h-6 w-6"
                              onClick={() =>
                                setAdditionalStorage(additionalStorage + 1)
                              }
                            >
                              <PlusIcon className="h-3 w-3" />
                            </Button>
                          </div>
                        </div>
                        <div className="text-muted-foreground text-xs">
                          ${addOns[1]!.pricePerUnit} per additional 10GB per
                          month
                        </div>
                      </div>
                    </CardContent>
                  </Card>
                </div>

                <div>
                  <h3 className="mb-4 text-lg font-medium">
                    3. Select add-ons
                  </h3>
                  <Card className="p-0">
                    <CardContent className="space-y-4 py-6">
                      {addOns.slice(2).map((addOn) => (
                        <div
                          key={addOn.id}
                          className="flex items-start space-x-3"
                        >
                          <Checkbox
                            id={addOn.id}
                            checked={selectedAddOns.includes(addOn.id)}
                            onCheckedChange={() => toggleAddOn(addOn.id)}
                          />
                          <div className="flex-1">
                            <Label
                              htmlFor={addOn.id}
                              className="cursor-pointer text-sm font-medium"
                            >
                              {addOn.name} - ${addOn.price}/month
                            </Label>
                            <p className="text-muted-foreground text-xs">
                              {addOn.description}
                            </p>
                          </div>
                        </div>
                      ))}
                    </CardContent>
                  </Card>
                </div>
              </div>

              <div className="space-y-8">
                <div className="sticky top-4">
                  <h3 className="mb-4 text-lg font-medium">Your Custom Plan</h3>
                  <Card>
                    <CardHeader>
                      <CardTitle>{selectedPlan.name} Plan</CardTitle>
                    </CardHeader>
                    <CardContent className="space-y-4">
                      <div className="space-y-2">
                        <div className="flex justify-between">
                          <span>Base Plan</span>
                          <span>{formatPrice(selectedPlan.basePrice)}</span>
                        </div>
                        {additionalUsers > 0 && (
                          <div className="flex justify-between">
                            <span>Additional Users ({additionalUsers})</span>
                            <span>{formatPrice(additionalUsers * 10)}</span>
                          </div>
                        )}
                        {additionalStorage > 0 && (
                          <div className="flex justify-between">
                            <span>
                              Additional Storage ({additionalStorage * 10}GB)
                            </span>
                            <span>{formatPrice(additionalStorage * 5)}</span>
                          </div>
                        )}
                        {selectedAddOns.map((id) => {
                          const addOn = addOns.find((a) => a.id === id);
                          if (addOn && addOn.price) {
                            return (
                              <div key={id} className="flex justify-between">
                                <span>{addOn.name}</span>
                                <span>{formatPrice(addOn.price)}</span>
                              </div>
                            );
                          }
                          return null;
                        })}
                      </div>

                      <div className="border-t pt-4">
                        <div className="flex justify-between font-medium">
                          <span>
                            Total {billingPeriod === 'annually' && '(per year)'}
                          </span>
                          <span>{formatPrice(calculateTotalPrice())}</span>
                        </div>
                        {billingPeriod === 'annually' && (
                          <div className="text-muted-foreground mt-1 text-right text-xs">
                            Includes 20% annual discount
                          </div>
                        )}
                      </div>

                      <div className="space-y-2">
                        <h4 className="font-medium">Included Features:</h4>
                        <ul className="space-y-1 text-sm">
                          {selectedPlan.features.map((feature) => (
                            <li key={feature} className="flex items-center">
                              <CheckIcon className="text-primary mr-2 h-4 w-4" />
                              <span>{feature}</span>
                            </li>
                          ))}
                          {additionalUsers > 0 && (
                            <li className="flex items-center">
                              <CheckIcon className="text-primary mr-2 h-4 w-4" />
                              <span>
                                {selectedPlan.includedUsers + additionalUsers}{' '}
                                total users
                              </span>
                            </li>
                          )}
                          {additionalStorage > 0 && (
                            <li className="flex items-center">
                              <CheckIcon className="text-primary mr-2 h-4 w-4" />
                              <span>
                                {selectedPlan.includedStorage +
                                  additionalStorage * 10}
                                GB total storage
                              </span>
                            </li>
                          )}
                          {selectedAddOns.map((id) => {
                            const addOn = addOns.find((a) => a.id === id);
                            if (addOn) {
                              return (
                                <li key={id} className="flex items-center">
                                  <CheckIcon className="text-primary mr-2 h-4 w-4" />
                                  <span>{addOn.name}</span>
                                </li>
                              );
                            }
                            return null;
                          })}
                        </ul>
                      </div>
                    </CardContent>
                    <CardFooter>
                      <Button className="w-full" asChild>
                        <a href="#">Get Started</a>
                      </Button>
                    </CardFooter>
                  </Card>
                </div>
              </div>
            </div>
          </Tabs>
        </div>

        <div className="bg-muted/30 mx-auto mt-16 max-w-3xl rounded-lg border p-8 text-center">
          <h3 className="text-xl font-medium">
            Need a more customized solution?
          </h3>
          <p className="text-muted-foreground mt-2">
            Contact our sales team for a personalized quote tailored to your
            specific requirements.
          </p>
          <Button className="mt-6" variant="outline" asChild>
            <a href="#">Contact Sales</a>
          </Button>
        </div>
      </div>
    </section>
  );
}
```

### `components/ui/button.tsx`

```tsx
import * as React from "react"
import { cva, type VariantProps } from "class-variance-authority"
import { Slot } from "radix-ui"

import { cn } from "@/lib/utils"

const buttonVariants = cva(
  "group/button inline-flex shrink-0 items-center justify-center rounded-md border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
  {
    variants: {
      variant: {
        default: "bg-primary text-primary-foreground hover:bg-primary/80",
        outline:
          "border-border bg-background shadow-xs hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",
        secondary:
          "bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",
        ghost:
          "hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",
        destructive:
          "bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",
        link: "text-primary underline-offset-4 hover:underline",
      },
      size: {
        default:
          "h-9 gap-1.5 px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
        xs: "h-6 gap-1 rounded-[min(var(--radius-md),8px)] px-2 text-xs in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",
        sm: "h-8 gap-1 rounded-[min(var(--radius-md),10px)] px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5",
        lg: "h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
        icon: "size-9",
        "icon-xs":
          "size-6 rounded-[min(var(--radius-md),8px)] in-data-[slot=button-group]:rounded-md [&_svg:not([class*='size-'])]:size-3",
        "icon-sm":
          "size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md",
        "icon-lg": "size-10",
      },
    },
    defaultVariants: {
      variant: "default",
      size: "default",
    },
  }
)

function Button({
  className,
  variant = "default",
  size = "default",
  asChild = false,
  ...props
}: React.ComponentProps<"button"> &
  VariantProps<typeof buttonVariants> & {
    asChild?: boolean
  }) {
  const Comp = asChild ? Slot.Root : "button"

  return (
    <Comp
      data-slot="button"
      data-variant={variant}
      data-size={size}
      className={cn(buttonVariants({ variant, size, className }))}
      {...props}
    />
  )
}

export { Button, buttonVariants }
```

### `components/ui/card.tsx`

```tsx
import * as React from "react"

import { cn } from "@/lib/utils"

function Card({
  className,
  size = "default",
  ...props
}: React.ComponentProps<"div"> & { size?: "default" | "sm" }) {
  return (
    <div
      data-slot="card"
      data-size={size}
      className={cn(
        "group/card flex flex-col gap-6 overflow-hidden rounded-xl bg-card py-6 text-sm text-card-foreground shadow-xs ring-1 ring-foreground/10 has-[>img:first-child]:pt-0 data-[size=sm]:gap-4 data-[size=sm]:py-4 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",
        className
      )}
      {...props}
    />
  )
}

function CardHeader({ className, ...props }: React.ComponentProps<"div">) {
  return (
    <div
      data-slot="card-header"
      className={cn(
        "group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-6 group-data-[size=sm]/card:px-4 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-6 group-data-[size=sm]/card:[.border-b]:pb-4",
        className
      )}
      {...props}
    />
  )
}

function CardTitle({ className, ...props }: React.ComponentProps<"div">) {
  return (
    <div
      data-slot="card-title"
      className={cn(
        "font-heading text-base leading-normal font-medium group-data-[size=sm]/card:text-sm",
        className
      )}
      {...props}
    />
  )
}

function CardDescription({ className, ...props }: React.ComponentProps<"div">) {
  return (
    <div
      data-slot="card-description"
      className={cn("text-sm text-muted-foreground", className)}
      {...props}
    />
  )
}

function CardAction({ className, ...props }: React.ComponentProps<"div">) {
  return (
    <div
      data-slot="card-action"
      className={cn(
        "col-start-2 row-span-2 row-start-1 self-start justify-self-end",
        className
      )}
      {...props}
    />
  )
}

function CardContent({ className, ...props }: React.ComponentProps<"div">) {
  return (
    <div
      data-slot="card-content"
      className={cn("px-6 group-data-[size=sm]/card:px-4", className)}
      {...props}
    />
  )
}

function CardFooter({ className, ...props }: React.ComponentProps<"div">) {
  return (
    <div
      data-slot="card-footer"
      className={cn(
        "flex items-center rounded-b-xl px-6 group-data-[size=sm]/card:px-4 [.border-t]:pt-6 group-data-[size=sm]/card:[.border-t]:pt-4",
        className
      )}
      {...props}
    />
  )
}

export {
  Card,
  CardHeader,
  CardFooter,
  CardTitle,
  CardAction,
  CardDescription,
  CardContent,
}
```

### `components/ui/checkbox.tsx`

```tsx
"use client"

import * as React from "react"
import { Checkbox as CheckboxPrimitive } from "radix-ui"

import { cn } from "@/lib/utils"
import { CheckIcon } from "lucide-react"

function Checkbox({
  className,
  ...props
}: React.ComponentProps<typeof CheckboxPrimitive.Root>) {
  return (
    <CheckboxPrimitive.Root
      data-slot="checkbox"
      className={cn(
        "peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input shadow-xs transition-shadow outline-none group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary",
        className
      )}
      {...props}
    >
      <CheckboxPrimitive.Indicator
        data-slot="checkbox-indicator"
        className="grid place-content-center text-current transition-none [&>svg]:size-3.5"
      >
        <CheckIcon
        />
      </CheckboxPrimitive.Indicator>
    </CheckboxPrimitive.Root>
  )
}

export { Checkbox }
```

### `components/ui/label.tsx`

```tsx
"use client"

import * as React from "react"
import { Label as LabelPrimitive } from "radix-ui"

import { cn } from "@/lib/utils"

function Label({
  className,
  ...props
}: React.ComponentProps<typeof LabelPrimitive.Root>) {
  return (
    <LabelPrimitive.Root
      data-slot="label"
      className={cn(
        "flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
        className
      )}
      {...props}
    />
  )
}

export { Label }
```

### `components/ui/tabs.tsx`

```tsx
"use client"

import * as React from "react"
import { cva, type VariantProps } from "class-variance-authority"
import { Tabs as TabsPrimitive } from "radix-ui"

import { cn } from "@/lib/utils"

function Tabs({
  className,
  orientation = "horizontal",
  ...props
}: React.ComponentProps<typeof TabsPrimitive.Root>) {
  return (
    <TabsPrimitive.Root
      data-slot="tabs"
      data-orientation={orientation}
      className={cn(
        "group/tabs flex gap-2 data-horizontal:flex-col",
        className
      )}
      {...props}
    />
  )
}

const tabsListVariants = cva(
  "group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-horizontal/tabs:h-9 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none",
  {
    variants: {
      variant: {
        default: "bg-muted",
        line: "gap-1 bg-transparent",
      },
    },
    defaultVariants: {
      variant: "default",
    },
  }
)

function TabsList({
  className,
  variant = "default",
  ...props
}: React.ComponentProps<typeof TabsPrimitive.List> &
  VariantProps<typeof tabsListVariants>) {
  return (
    <TabsPrimitive.List
      data-slot="tabs-list"
      data-variant={variant}
      className={cn(tabsListVariants({ variant }), className)}
      {...props}
    />
  )
}

function TabsTrigger({
  className,
  ...props
}: React.ComponentProps<typeof TabsPrimitive.Trigger>) {
  return (
    <TabsPrimitive.Trigger
      data-slot="tabs-trigger"
      className={cn(
        "relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
        "group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent",
        "data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground",
        "after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100",
        className
      )}
      {...props}
    />
  )
}

function TabsContent({
  className,
  ...props
}: React.ComponentProps<typeof TabsPrimitive.Content>) {
  return (
    <TabsPrimitive.Content
      data-slot="tabs-content"
      className={cn("flex-1 text-sm outline-none", className)}
      {...props}
    />
  )
}

export { Tabs, TabsList, TabsTrigger, TabsContent, tabsListVariants }
```
