{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"ecommerce-product-features-feature-comparison-table","type":"registry:block","title":"Feature Comparison Table","files":[{"path":"components/blocks/ecommerce/product-features/feature-comparison-table.tsx","content":"import { useState } from 'react';\n\nimport { ArrowRight, Check, HelpCircle, Info, X } from 'lucide-react';\nimport { Badge } from '@/components/ui/badge';\nimport { Button } from '@/components/ui/button';\nimport {\n  Table,\n  TableBody,\n  TableCell,\n  TableHead,\n  TableHeader,\n  TableRow,\n} from '@/components/ui/table';\nimport {\n  Tooltip,\n  TooltipContent,\n  TooltipProvider,\n  TooltipTrigger,\n} from '@/components/ui/tooltip';\n\nexport default function FeatureComparisonTable() {\n  const [activeTier, setActiveTier] = useState<string>('premium');\n\n  const tiers = [\n    {\n      id: 'basic',\n      name: 'Basic',\n      price: '$149',\n      description: 'All the essentials for daily commuting',\n      image:\n        'https://images.unsplash.com/photo-1485965120184-e220f721d03e?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D',\n      popular: false,\n    },\n    {\n      id: 'premium',\n      name: 'Premium',\n      price: '$249',\n      description: 'Advanced features for the cycling enthusiast',\n      image:\n        'https://images.unsplash.com/photo-1532298229144-0ec0c57515c7?q=80&w=1976&auto=format&fit=crop',\n      popular: true,\n    },\n    {\n      id: 'elite',\n      name: 'Elite Carbon',\n      price: '$399',\n      description: 'Professional grade components for serious riders',\n      image:\n        'https://images.unsplash.com/photo-1507035895480-2b3156c31fc8?q=80&w=2070&auto=format&fit=crop',\n      popular: false,\n    },\n  ];\n\n  const featureCategories = [\n    {\n      name: 'Frame & Construction',\n      features: [\n        {\n          name: 'Frame Material',\n          values: {\n            basic: 'Aluminum Alloy',\n            premium: 'Hydroformed Aluminum',\n            elite: 'Carbon Fiber Composite',\n          },\n          tooltip: 'The primary material used in the bike frame construction',\n        },\n        {\n          name: 'Weight',\n          values: {\n            basic: '12.5 kg (27.5 lbs)',\n            premium: '10.2 kg (22.5 lbs)',\n            elite: '8.3 kg (18.3 lbs)',\n          },\n          tooltip: 'Total weight of the assembled bicycle',\n        },\n        {\n          name: 'Internal Cable Routing',\n          values: {\n            basic: false,\n            premium: true,\n            elite: true,\n          },\n          tooltip:\n            'Cables run inside the frame for a cleaner look and protection',\n        },\n      ],\n    },\n    {\n      name: 'Components',\n      features: [\n        {\n          name: 'Drivetrain',\n          values: {\n            basic: 'Shimano Altus (8-speed)',\n            premium: 'Shimano Deore (10-speed)',\n            elite: 'Shimano XT (12-speed)',\n          },\n          tooltip: 'The gear and shifting system',\n        },\n        {\n          name: 'Brakes',\n          values: {\n            basic: 'Mechanical Disc',\n            premium: 'Hydraulic Disc',\n            elite: 'Shimano XT Hydraulic Disc',\n          },\n          tooltip: 'Brake system type and quality',\n        },\n        {\n          name: 'Wheelset',\n          values: {\n            basic: 'Aluminum Double Wall',\n            premium: 'Tubeless Ready Aluminum',\n            elite: 'Carbon Fiber Tubeless Ready',\n          },\n          tooltip: 'Type and material of the wheels',\n        },\n      ],\n    },\n    {\n      name: 'Comfort & Accessories',\n      features: [\n        {\n          name: 'Suspension Fork',\n          values: {\n            basic: '100mm Travel',\n            premium: '120mm Travel, Adjustable',\n            elite: '120mm Travel, Fully Adjustable',\n          },\n          tooltip: 'Front suspension system for absorbing impacts',\n        },\n        {\n          name: 'Dropper Seatpost',\n          values: {\n            basic: false,\n            premium: true,\n            elite: true,\n          },\n          tooltip:\n            'Height-adjustable seatpost that can be controlled while riding',\n        },\n        {\n          name: 'Tubeless Tires',\n          values: {\n            basic: false,\n            premium: true,\n            elite: true,\n          },\n          tooltip:\n            \"Tires that don't use inner tubes, providing better puncture resistance\",\n        },\n      ],\n    },\n    {\n      name: 'Support & Warranty',\n      features: [\n        {\n          name: 'Frame Warranty',\n          values: {\n            basic: '5 Years',\n            premium: 'Lifetime',\n            elite: 'Lifetime',\n          },\n          tooltip: 'Length of manufacturer warranty on the frame',\n        },\n        {\n          name: 'Components Warranty',\n          values: {\n            basic: '1 Year',\n            premium: '2 Years',\n            elite: '3 Years',\n          },\n          tooltip: 'Length of manufacturer warranty on components',\n        },\n        {\n          name: 'Professional Bike Fitting',\n          values: {\n            basic: false,\n            premium: true,\n            elite: true,\n          },\n          tooltip: 'Expert service to adjust the bike to your body dimensions',\n        },\n      ],\n    },\n  ];\n\n  return (\n    <section className=\"bg-background w-full py-12 md:py-24 lg:py-32\">\n      <div className=\"container mx-auto px-4 md:px-6 2xl:max-w-[1400px]\">\n        <div className=\"mb-8 flex flex-col items-center space-y-4 text-center md:mb-16\">\n          <Badge className=\"px-3.5 py-1.5\">Compare Models</Badge>\n          <h2 className=\"text-3xl font-bold tracking-tighter sm:text-4xl md:text-5xl\">\n            Find your perfect ride\n          </h2>\n          <p className=\"text-muted-foreground max-w-[700px] md:text-xl/relaxed\">\n            Compare our mountain bike models to find the right balance of\n            performance and value for your riding style.\n          </p>\n        </div>\n\n        {/* Product tier selector for mobile */}\n        <div className=\"mb-8 md:hidden\">\n          <select\n            className=\"w-full rounded-md border p-2\"\n            value={activeTier}\n            onChange={(e) => setActiveTier(e.target.value)}\n          >\n            {tiers.map((tier) => (\n              <option key={tier.id} value={tier.id}>\n                {tier.name} - {tier.price}\n              </option>\n            ))}\n          </select>\n        </div>\n\n        {/* Product tier cards */}\n        <div className=\"mb-8 hidden grid-cols-4 gap-4 md:grid\">\n          <div className=\"flex items-end p-6\">\n            <h3 className=\"text-xl font-semibold\">Mountain Bike Models</h3>\n          </div>\n          {tiers.map((tier) => (\n            <div\n              key={tier.id}\n              className={`relative flex h-full flex-col rounded-xl border p-6 transition-all ${\n                tier.id === activeTier\n                  ? 'ring-primary shadow-lg ring-2'\n                  : 'hover:border-primary/50 cursor-pointer hover:shadow-md'\n              }`}\n              onClick={() => setActiveTier(tier.id)}\n            >\n              {tier.popular && (\n                <Badge className=\"absolute top-0 right-0 translate-x-1/4 -translate-y-1/2 px-3 py-1\">\n                  Most Popular\n                </Badge>\n              )}\n              <div className=\"relative mb-4 aspect-[4/3] w-full overflow-hidden rounded-lg\">\n                <img\n                  src={tier.image}\n                  alt={tier.name}\n                  className=\"object-cover\"\n                  sizes=\"(max-width: 768px) 100vw, 300px\"\n                />\n              </div>\n              <h3 className=\"text-lg font-semibold\">{tier.name}</h3>\n              <div className=\"mt-1 flex items-baseline gap-1\">\n                <span className=\"text-2xl font-bold\">{tier.price}</span>\n              </div>\n              <p className=\"text-muted-foreground mt-2 flex-grow text-sm\">\n                {tier.description}\n              </p>\n              <Button\n                variant={tier.id === activeTier ? 'default' : 'outline'}\n                size=\"sm\"\n                className=\"mt-4\"\n                asChild\n              >\n                <a href=\"#\">\n                  View Details\n                  <ArrowRight className=\"ml-2 h-4 w-4\" />\n                </a>\n              </Button>\n            </div>\n          ))}\n        </div>\n\n        {/* Mobile comparison for selected tier */}\n        <div className=\"space-y-8 md:hidden\">\n          {featureCategories.map((category) => (\n            <div key={category.name} className=\"space-y-4\">\n              <h3 className=\"border-b pb-2 text-lg font-semibold\">\n                {category.name}\n              </h3>\n              <div className=\"space-y-4\">\n                {category.features.map((feature) => (\n                  <div key={feature.name} className=\"grid grid-cols-2 gap-4\">\n                    <div className=\"flex items-center gap-2\">\n                      <span>{feature.name}</span>\n                      <TooltipProvider>\n                        <Tooltip>\n                          <TooltipTrigger>\n                            <HelpCircle className=\"text-muted-foreground h-4 w-4\" />\n                          </TooltipTrigger>\n                          <TooltipContent>\n                            <p className=\"max-w-xs text-sm\">\n                              {feature.tooltip}\n                            </p>\n                          </TooltipContent>\n                        </Tooltip>\n                      </TooltipProvider>\n                    </div>\n                    <div>\n                      {typeof feature.values[\n                        activeTier as keyof typeof feature.values\n                      ] === 'boolean' ? (\n                        feature.values[\n                          activeTier as keyof typeof feature.values\n                        ] ? (\n                          <Check className=\"text-primary h-5 w-5\" />\n                        ) : (\n                          <X className=\"text-muted-foreground h-5 w-5\" />\n                        )\n                      ) : (\n                        <span>\n                          {\n                            feature.values[\n                              activeTier as keyof typeof feature.values\n                            ]\n                          }\n                        </span>\n                      )}\n                    </div>\n                  </div>\n                ))}\n              </div>\n            </div>\n          ))}\n        </div>\n\n        {/* Desktop comparison table */}\n        <div className=\"hidden overflow-x-auto md:block\">\n          <TooltipProvider>\n            <Table className=\"border-collapse\">\n              <TableHeader>\n                <TableRow className=\"bg-muted/50\">\n                  <TableHead className=\"w-1/4\">Feature Categories</TableHead>\n                  {tiers.map((tier) => (\n                    <TableHead\n                      key={tier.id}\n                      className={`text-center ${\n                        tier.id === activeTier ? 'bg-primary/5' : ''\n                      }`}\n                    >\n                      {tier.name}\n                    </TableHead>\n                  ))}\n                </TableRow>\n              </TableHeader>\n              <TableBody>\n                {featureCategories.map((category, categoryIndex) => (\n                  <>\n                    <TableRow className=\"bg-muted/20\">\n                      <TableCell colSpan={4} className=\"text-base font-medium\">\n                        {category.name}\n                      </TableCell>\n                    </TableRow>\n                    {category.features.map((feature, featureIndex) => (\n                      <TableRow\n                        key={`${categoryIndex}-${featureIndex}`}\n                        className={`${\n                          featureIndex === category.features.length - 1 &&\n                          categoryIndex !== featureCategories.length - 1\n                            ? 'border-border border-b-2'\n                            : ''\n                        }`}\n                      >\n                        <TableCell className=\"flex items-center gap-2 font-medium\">\n                          {feature.name}\n                          <Tooltip>\n                            <TooltipTrigger>\n                              <Info className=\"text-muted-foreground h-4 w-4\" />\n                            </TooltipTrigger>\n                            <TooltipContent>\n                              <p className=\"max-w-xs text-sm\">\n                                {feature.tooltip}\n                              </p>\n                            </TooltipContent>\n                          </Tooltip>\n                        </TableCell>\n                        {tiers.map((tier) => (\n                          <TableCell\n                            key={`${feature.name}-${tier.id}`}\n                            className={`text-center ${\n                              tier.id === activeTier ? 'bg-primary/5' : ''\n                            }`}\n                          >\n                            {typeof feature.values[\n                              tier.id as keyof typeof feature.values\n                            ] === 'boolean' ? (\n                              feature.values[\n                                tier.id as keyof typeof feature.values\n                              ] ? (\n                                <div className=\"flex justify-center\">\n                                  <Check className=\"text-primary h-5 w-5\" />\n                                </div>\n                              ) : (\n                                <div className=\"flex justify-center\">\n                                  <X className=\"text-muted-foreground h-5 w-5\" />\n                                </div>\n                              )\n                            ) : (\n                              <span>\n                                {\n                                  feature.values[\n                                    tier.id as keyof typeof feature.values\n                                  ]\n                                }\n                              </span>\n                            )}\n                          </TableCell>\n                        ))}\n                      </TableRow>\n                    ))}\n                  </>\n                ))}\n              </TableBody>\n            </Table>\n          </TooltipProvider>\n        </div>\n\n        {/* CTA section */}\n        <div className=\"mt-16 flex flex-col items-center justify-center space-y-4 text-center\">\n          <h3 className=\"text-xl font-semibold\">Ready to hit the trails?</h3>\n          <p className=\"text-muted-foreground max-w-[600px]\">\n            All bikes come with free shipping, professional assembly, and a\n            30-day test ride guarantee.\n          </p>\n          <div className=\"mt-6 flex flex-col gap-4 sm:flex-row\">\n            <Button size=\"lg\" asChild>\n              <a href=\"#\">\n                Shop {tiers.find((t) => t.id === activeTier)?.name || 'Premium'}{' '}\n                Model\n                <ArrowRight className=\"ml-2 h-4 w-4\" />\n              </a>\n            </Button>\n            <Button size=\"lg\" variant=\"outline\" asChild>\n              <a href=\"#\">Schedule Test Ride</a>\n            </Button>\n          </div>\n        </div>\n      </div>\n    </section>\n  );\n}\n","type":"registry:component","target":"components/blocks/ecommerce/product-features/feature-comparison-table.tsx"},{"path":"components/ui/badge.tsx","content":"import * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport { Slot } from \"radix-ui\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst badgeVariants = cva(\n  \"group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!\",\n  {\n    variants: {\n      variant: {\n        default: \"bg-primary text-primary-foreground [a]:hover:bg-primary/80\",\n        secondary:\n          \"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80\",\n        destructive:\n          \"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20\",\n        outline:\n          \"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground\",\n        ghost:\n          \"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50\",\n        link: \"text-primary underline-offset-4 hover:underline\",\n      },\n    },\n    defaultVariants: {\n      variant: \"default\",\n    },\n  }\n)\n\nfunction Badge({\n  className,\n  variant = \"default\",\n  asChild = false,\n  ...props\n}: React.ComponentProps<\"span\"> &\n  VariantProps<typeof badgeVariants> & { asChild?: boolean }) {\n  const Comp = asChild ? Slot.Root : \"span\"\n\n  return (\n    <Comp\n      data-slot=\"badge\"\n      data-variant={variant}\n      className={cn(badgeVariants({ variant }), className)}\n      {...props}\n    />\n  )\n}\n\nexport { Badge, badgeVariants }\n","type":"registry:ui","target":"components/ui/badge.tsx"},{"path":"components/ui/button.tsx","content":"import * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport { Slot } from \"radix-ui\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst buttonVariants = cva(\n  \"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\",\n  {\n    variants: {\n      variant: {\n        default: \"bg-primary text-primary-foreground hover:bg-primary/80\",\n        outline:\n          \"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\",\n        secondary:\n          \"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground\",\n        ghost:\n          \"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50\",\n        destructive:\n          \"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\",\n        link: \"text-primary underline-offset-4 hover:underline\",\n      },\n      size: {\n        default:\n          \"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\",\n        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\",\n        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\",\n        lg: \"h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2\",\n        icon: \"size-9\",\n        \"icon-xs\":\n          \"size-6 rounded-[min(var(--radius-md),8px)] in-data-[slot=button-group]:rounded-md [&_svg:not([class*='size-'])]:size-3\",\n        \"icon-sm\":\n          \"size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md\",\n        \"icon-lg\": \"size-10\",\n      },\n    },\n    defaultVariants: {\n      variant: \"default\",\n      size: \"default\",\n    },\n  }\n)\n\nfunction Button({\n  className,\n  variant = \"default\",\n  size = \"default\",\n  asChild = false,\n  ...props\n}: React.ComponentProps<\"button\"> &\n  VariantProps<typeof buttonVariants> & {\n    asChild?: boolean\n  }) {\n  const Comp = asChild ? Slot.Root : \"button\"\n\n  return (\n    <Comp\n      data-slot=\"button\"\n      data-variant={variant}\n      data-size={size}\n      className={cn(buttonVariants({ variant, size, className }))}\n      {...props}\n    />\n  )\n}\n\nexport { Button, buttonVariants }\n","type":"registry:ui","target":"components/ui/button.tsx"},{"path":"components/ui/table.tsx","content":"\"use client\"\n\nimport * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Table({ className, ...props }: React.ComponentProps<\"table\">) {\n  return (\n    <div\n      data-slot=\"table-container\"\n      className=\"relative w-full overflow-x-auto\"\n    >\n      <table\n        data-slot=\"table\"\n        className={cn(\"w-full caption-bottom text-sm\", className)}\n        {...props}\n      />\n    </div>\n  )\n}\n\nfunction TableHeader({ className, ...props }: React.ComponentProps<\"thead\">) {\n  return (\n    <thead\n      data-slot=\"table-header\"\n      className={cn(\"[&_tr]:border-b\", className)}\n      {...props}\n    />\n  )\n}\n\nfunction TableBody({ className, ...props }: React.ComponentProps<\"tbody\">) {\n  return (\n    <tbody\n      data-slot=\"table-body\"\n      className={cn(\"[&_tr:last-child]:border-0\", className)}\n      {...props}\n    />\n  )\n}\n\nfunction TableFooter({ className, ...props }: React.ComponentProps<\"tfoot\">) {\n  return (\n    <tfoot\n      data-slot=\"table-footer\"\n      className={cn(\n        \"border-t bg-muted/50 font-medium [&>tr]:last:border-b-0\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nfunction TableRow({ className, ...props }: React.ComponentProps<\"tr\">) {\n  return (\n    <tr\n      data-slot=\"table-row\"\n      className={cn(\n        \"border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nfunction TableHead({ className, ...props }: React.ComponentProps<\"th\">) {\n  return (\n    <th\n      data-slot=\"table-head\"\n      className={cn(\n        \"h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nfunction TableCell({ className, ...props }: React.ComponentProps<\"td\">) {\n  return (\n    <td\n      data-slot=\"table-cell\"\n      className={cn(\n        \"p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nfunction TableCaption({\n  className,\n  ...props\n}: React.ComponentProps<\"caption\">) {\n  return (\n    <caption\n      data-slot=\"table-caption\"\n      className={cn(\"mt-4 text-sm text-muted-foreground\", className)}\n      {...props}\n    />\n  )\n}\n\nexport {\n  Table,\n  TableHeader,\n  TableBody,\n  TableFooter,\n  TableHead,\n  TableRow,\n  TableCell,\n  TableCaption,\n}\n","type":"registry:ui","target":"components/ui/table.tsx"},{"path":"components/ui/tooltip.tsx","content":"\"use client\"\n\nimport * as React from \"react\"\nimport { Tooltip as TooltipPrimitive } from \"radix-ui\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction TooltipProvider({\n  delayDuration = 0,\n  ...props\n}: React.ComponentProps<typeof TooltipPrimitive.Provider>) {\n  return (\n    <TooltipPrimitive.Provider\n      data-slot=\"tooltip-provider\"\n      delayDuration={delayDuration}\n      {...props}\n    />\n  )\n}\n\nfunction Tooltip({\n  ...props\n}: React.ComponentProps<typeof TooltipPrimitive.Root>) {\n  return <TooltipPrimitive.Root data-slot=\"tooltip\" {...props} />\n}\n\nfunction TooltipTrigger({\n  ...props\n}: React.ComponentProps<typeof TooltipPrimitive.Trigger>) {\n  return <TooltipPrimitive.Trigger data-slot=\"tooltip-trigger\" {...props} />\n}\n\nfunction TooltipContent({\n  className,\n  sideOffset = 0,\n  arrow = true,\n  children,\n  ...props\n}: React.ComponentProps<typeof TooltipPrimitive.Content> & {\n  /** Hide the pointer arrow (custom-surfaced tooltips, e.g. the app's dark\n   *  menu-styled ones, where the bg-foreground diamond clashes). */\n  arrow?: boolean\n}) {\n  return (\n    <TooltipPrimitive.Portal>\n      <TooltipPrimitive.Content\n        data-slot=\"tooltip-content\"\n        sideOffset={sideOffset}\n        className={cn(\n          \"z-50 inline-flex w-fit max-w-xs origin-(--radix-tooltip-content-transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95\",\n          className\n        )}\n        {...props}\n      >\n        {children}\n        {arrow && (\n          <TooltipPrimitive.Arrow className=\"z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground\" />\n        )}\n      </TooltipPrimitive.Content>\n    </TooltipPrimitive.Portal>\n  )\n}\n\nexport { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger }\n","type":"registry:ui","target":"components/ui/tooltip.tsx"}],"description":"A table that lines up features across plans or models with clear check marks. Helps shoppers weigh every option and pick the right product fast.","dependencies":["class-variance-authority","lucide-react","radix-ui"]}