# Employee Benefits

> An employee benefits grid covering insurance, learning budgets, and flexible hours. Shows candidates the full package while they consider applying.

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-careers-employee-benefits).

- Page, with a live preview: https://shadcn.exchange/r/shadcn-ui-blocks/marketing-careers-employee-benefits
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/shadcn-ui-blocks/marketing-careers-employee-benefits-light-91369fb3818cedd8.png
- Registry item: https://www.shadcn-ui-blocks.com/r/marketing-careers-employee-benefits.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-careers-employee-benefits.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/careers/employee-benefits.tsx`

```tsx
import * as React from 'react';
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs';
import { Card, CardContent } from '@/components/ui/card';
import { Button } from '@/components/ui/button';
import {
  CalendarIcon,
  CoinsIcon,
  GraduationCapIcon,
  HeartPulseIcon,
  HomeIcon,
  LaptopIcon,
  PalmtreeIcon,
  PlaneIcon,
  ShieldCheckIcon,
  UtensilsIcon,
} from 'lucide-react';

interface Benefit {
  id: string;
  title: string;
  icon: React.ReactNode;
  description: string;
  highlights: string[];
}

interface BenefitCategory {
  id: string;
  name: string;
  description: string;
  benefits: Benefit[];
}

interface Testimonial {
  id: string;
  quote: string;
  name: string;
  role: string;
  image: string;
  benefitHighlight: string;
}

export default function EmployeeBenefits() {
  const benefitCategories: BenefitCategory[] = [
    {
      id: 'health-wellness',
      name: 'Health & Wellness',
      description:
        'We prioritize your physical and mental wellbeing with comprehensive healthcare coverage and wellness programs.',
      benefits: [
        {
          id: 'medical',
          title: 'Medical Coverage',
          icon: <HeartPulseIcon className="h-6 w-6" />,
          description:
            'Comprehensive health insurance with coverage for you and your dependents.',
          highlights: [
            'Premium medical, dental, and vision plans',
            '100% employer-paid premiums for employees',
            '75% coverage for dependents',
            'Access to top healthcare networks nationwide',
          ],
        },
        {
          id: 'mental-health',
          title: 'Mental Health Support',
          icon: <ShieldCheckIcon className="h-6 w-6" />,
          description:
            'Resources and support for your mental and emotional wellbeing.',
          highlights: [
            'Free therapy sessions through our EAP',
            'Mental health days (separate from sick leave)',
            'Meditation and mindfulness app subscriptions',
            'Stress management workshops',
          ],
        },
        {
          id: 'wellness',
          title: 'Wellness Program',
          icon: <CoinsIcon className="h-6 w-6" />,
          description:
            'Resources and incentives to help you maintain a healthy lifestyle.',
          highlights: [
            '$100 monthly wellness stipend',
            'On-site fitness classes (where available)',
            'Fitness membership reimbursement',
            'Annual wellness challenges with prizes',
          ],
        },
      ],
    },
    {
      id: 'time-off',
      name: 'Time Off',
      description:
        'We believe in work-life balance and offer generous time away from work to rest and recharge.',
      benefits: [
        {
          id: 'pto',
          title: 'Paid Time Off',
          icon: <CalendarIcon className="h-6 w-6" />,
          description:
            'Flexible vacation policy that encourages taking time to recharge.',
          highlights: [
            'Unlimited PTO with 15-day minimum encouraged',
            'Company-wide minimum 2-week vacation encouraged annually',
            'Sabbatical program: 4 weeks paid after 4 years',
            'Company-wide shutdown periods during holidays',
          ],
        },
        {
          id: 'holidays',
          title: 'Holidays & Breaks',
          icon: <PalmtreeIcon className="h-6 w-6" />,
          description: 'Paid holidays and extended breaks throughout the year.',
          highlights: [
            '12 paid holidays per year',
            'Extended winter break (Dec 24-Jan 1)',
            'Summer Fridays (half-days) between Memorial and Labor Day',
            'Birthday day off',
          ],
        },
        {
          id: 'parental-leave',
          title: 'Parental Leave',
          icon: <HomeIcon className="h-6 w-6" />,
          description:
            'Generous parental leave to bond with your new family member.',
          highlights: [
            '16 weeks paid parental leave for all parents',
            'Additional 8 weeks for birth parents',
            'Flexible return-to-work programs',
            'Childcare stipend during transition back to work',
          ],
        },
      ],
    },
    {
      id: 'financial',
      name: 'Financial Benefits',
      description:
        'We offer competitive compensation and benefits to secure your financial future.',
      benefits: [
        {
          id: 'retirement',
          title: 'Retirement Plans',
          icon: <CoinsIcon className="h-6 w-6" />,
          description:
            'Help you save for the future with matching contributions.',
          highlights: [
            '401(k) with 4% company match',
            'Immediate vesting',
            'Financial planning resources',
            'Annual retirement planning workshops',
          ],
        },
        {
          id: 'equity',
          title: 'Equity Compensation',
          icon: <CoinsIcon className="h-6 w-6" />,
          description: "Share in the company's success with equity grants.",
          highlights: [
            'Stock options or RSUs for all full-time employees',
            'Annual equity refreshes based on performance',
            'Employee stock purchase program with discount',
            'Equity education sessions and resources',
          ],
        },
        {
          id: 'bonus',
          title: 'Bonuses & Recognition',
          icon: <CoinsIcon className="h-6 w-6" />,
          description:
            'Celebrate your contributions and achievements with additional compensation.',
          highlights: [
            'Annual performance bonuses',
            'Spot bonuses for exceptional work',
            'Peer recognition program with rewards',
            'Referral bonuses ($2,000 per successful hire)',
          ],
        },
      ],
    },
    {
      id: 'growth',
      name: 'Growth & Development',
      description:
        'We invest in your personal and professional growth with extensive learning opportunities.',
      benefits: [
        {
          id: 'learning',
          title: 'Learning Budget',
          icon: <GraduationCapIcon className="h-6 w-6" />,
          description:
            'Resources to help you grow your skills and advance your career.',
          highlights: [
            '$2,000 annual learning & development budget',
            'Access to online learning platforms',
            'Professional certification reimbursement',
            'Internal workshops and learning sessions',
          ],
        },
        {
          id: 'conferences',
          title: 'Conferences & Events',
          icon: <PlaneIcon className="h-6 w-6" />,
          description:
            'Opportunities to learn, network, and represent the company.',
          highlights: [
            'Conference attendance sponsorship',
            'Speaking opportunity support',
            'Industry event participation',
            'Travel and accommodation coverage',
          ],
        },
        {
          id: 'mentorship',
          title: 'Mentorship & Coaching',
          icon: <GraduationCapIcon className="h-6 w-6" />,
          description:
            'Programs to help you develop skills and advance your career.',
          highlights: [
            'Formal mentorship program',
            'Executive coaching for leadership roles',
            'Career development planning',
            'Regular 1:1s with managers focused on growth',
          ],
        },
      ],
    },
    {
      id: 'lifestyle',
      name: 'Lifestyle & Perks',
      description:
        'We offer unique perks that enhance your daily life and make work more enjoyable.',
      benefits: [
        {
          id: 'remote',
          title: 'Remote Work',
          icon: <LaptopIcon className="h-6 w-6" />,
          description:
            "Flexibility to work where you're most productive and comfortable.",
          highlights: [
            'Flexible remote work policy',
            'Home office stipend ($500 initially, $200 annually)',
            'Co-working space allowance where available',
            'Ergonomic assessment and equipment',
          ],
        },
        {
          id: 'meals',
          title: 'Meals & Snacks',
          icon: <UtensilsIcon className="h-6 w-6" />,
          description:
            'Keep fueled and focused with complimentary food and beverages.',
          highlights: [
            'Catered team lunches twice weekly (in office)',
            'Fully stocked kitchen with snacks and beverages',
            'Monthly meal allowance for remote employees',
            'Special dietary accommodations',
          ],
        },
        {
          id: 'wellbeing',
          title: 'Wellbeing Initiatives',
          icon: <HeartPulseIcon className="h-6 w-6" />,
          description: 'Programs and perks to support your holistic wellbeing.',
          highlights: [
            'Quarterly wellness challenges',
            'Mental health days',
            'Volunteer time off (16 hours annually)',
            'Annual team retreats and social events',
          ],
        },
      ],
    },
  ];

  const testimonials: Testimonial[] = [
    {
      id: '1',
      quote:
        'The parental leave policy gave me precious time with my newborn daughter. Having 16 weeks fully paid meant I could focus completely on my family during this important time.',
      name: 'David Chen',
      role: 'Senior Product Manager',
      image:
        'https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?q=80&w=1974&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D',
      benefitHighlight: 'Parental Leave',
    },
    {
      id: '2',
      quote:
        'The learning budget has been transformative for my career. I was able to get certified in UX research and attend a major design conference, which directly impacted my work and promotion.',
      name: 'Michelle Park',
      role: 'UX Designer',
      image:
        'https://images.unsplash.com/photo-1494790108377-be9c29b29330?q=80&w=1974&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D',
      benefitHighlight: 'Learning Budget',
    },
    {
      id: '3',
      quote:
        'The unlimited PTO policy isn&apos;t just talk - my manager actively encourages taking time off. I took three weeks to travel to Europe and came back refreshed and more productive.',
      name: 'James Wilson',
      role: 'Software Engineer',
      image:
        'https://images.unsplash.com/photo-1500648767791-00dcc994a43e?q=80&w=1974&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D',
      benefitHighlight: 'Unlimited PTO',
    },
  ];

  return (
    <div className="container mx-auto px-4 py-12">
      <div className="mb-12 text-center">
        <h2 className="mb-3 text-3xl font-bold tracking-tight">
          Comprehensive Benefits & Perks
        </h2>
        <p className="text-muted-foreground mx-auto max-w-2xl">
          We believe in taking care of our team with benefits that matter. From
          health and wellness to professional development, we&apos;ve got you
          covered.
        </p>
      </div>

      <Tabs defaultValue={benefitCategories[0]!.id} className="w-full gap-0">
        <div className="mb-8 overflow-x-auto">
          <TabsList className="inline-flex h-12 w-auto">
            {benefitCategories.map((category) => (
              <TabsTrigger key={category.id} value={category.id}>
                {category.name}
              </TabsTrigger>
            ))}
          </TabsList>
        </div>

        {benefitCategories.map((category) => (
          <TabsContent
            key={category.id}
            value={category.id}
            className="animate-in fade-in-50 duration-300"
          >
            <div className="mb-8">
              <h3 className="mb-2 text-xl font-semibold">{category.name}</h3>
              <p className="text-muted-foreground">{category.description}</p>
            </div>

            <div className="grid gap-6 sm:grid-cols-2 lg:grid-cols-3">
              {category.benefits.map((benefit) => (
                <Card key={benefit.id} className="flex h-full flex-col">
                  <CardContent className="flex flex-col">
                    <div className="mb-4 flex items-center">
                      <div className="bg-primary/10 text-primary mr-3 flex h-12 w-12 items-center justify-center rounded-full">
                        {benefit.icon}
                      </div>
                      <h4 className="text-lg font-medium">{benefit.title}</h4>
                    </div>
                    <p className="text-muted-foreground mb-6 flex-grow">
                      {benefit.description}
                    </p>
                    <ul className="space-y-2">
                      {benefit.highlights.map((highlight, index) => (
                        <li
                          key={index}
                          className="flex items-start gap-2 text-sm"
                        >
                          <svg
                            className="text-primary mt-1 h-4 w-4 flex-shrink-0"
                            xmlns="http://www.w3.org/2000/svg"
                            viewBox="0 0 24 24"
                            fill="none"
                            stroke="currentColor"
                            strokeWidth="2"
                            strokeLinecap="round"
                            strokeLinejoin="round"
                          >
                            <path d="M20 6 9 17l-5-5" />
                          </svg>
                          <span>{highlight}</span>
                        </li>
                      ))}
                    </ul>
                  </CardContent>
                </Card>
              ))}
            </div>
          </TabsContent>
        ))}
      </Tabs>

      <div className="mt-16">
        <h3 className="mb-8 text-center text-2xl font-semibold">
          What Our Team Says
        </h3>
        <div className="grid gap-8 md:grid-cols-3">
          {testimonials.map((testimonial) => (
            <Card key={testimonial.id} className="overflow-hidden">
              <CardContent className="">
                <div className="mb-4 flex items-center gap-4">
                  <div className="h-12 w-12 overflow-hidden rounded-full">
                    <img
                      src={testimonial.image}
                      alt={testimonial.name}
                      width={48}
                      height={48}
                      className="h-full w-full object-cover"
                    />
                  </div>
                  <div>
                    <p className="font-medium">{testimonial.name}</p>
                    <p className="text-muted-foreground text-sm">
                      {testimonial.role}
                    </p>
                  </div>
                </div>
                <p className="mb-3 italic">&quot;{testimonial.quote}&quot;</p>
                <div className="mt-4">
                  <span className="bg-primary/10 text-primary rounded-full px-3 py-1 text-xs font-medium">
                    {testimonial.benefitHighlight}
                  </span>
                </div>
              </CardContent>
            </Card>
          ))}
        </div>
      </div>

      <div className="bg-muted/50 mt-16 flex flex-col items-center justify-center rounded-lg p-8 text-center">
        <h3 className="mb-4 text-xl font-semibold">
          Join Our Team & Enjoy These Benefits
        </h3>
        <p className="text-muted-foreground mb-6 max-w-2xl">
          We&apos;re always looking for talented individuals to join our team.
          Check out our open positions and apply today.
        </p>
        <Button size="lg">View Open Positions</Button>
      </div>
    </div>
  );
}
```

### `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 }
```

### `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/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 }
```
