{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"marketing-hero-forms-user-feedback-form","type":"registry:block","title":"User Feedback Form","files":[{"path":"components/blocks/marketing/hero-forms/user-feedback-form.tsx","content":"import { useState } from 'react';\nimport { Button } from '@/components/ui/button';\nimport { Textarea } from '@/components/ui/textarea';\nimport { Input } from '@/components/ui/input';\nimport { Label } from '@/components/ui/label';\nimport { Slider } from '@/components/ui/slider';\nimport { RadioGroup, RadioGroupItem } from '@/components/ui/radio-group';\nimport { Checkbox } from '@/components/ui/checkbox';\nimport { Card, CardContent, CardHeader } from '@/components/ui/card';\nimport { Badge } from '@/components/ui/badge';\nimport { Separator } from '@/components/ui/separator';\nimport { CheckIcon, ChevronRightIcon, StarIcon } from 'lucide-react';\n\nexport default function HeroFormUserFeedback() {\n  const [step, setStep] = useState(1);\n  const [submitted, setSubmitted] = useState(false);\n  const [feedback, setFeedback] = useState({\n    // Rating scores (1-10)\n    ratings: {\n      overall: 8,\n      usability: 7,\n      features: 8,\n      support: 6,\n      value: 9,\n    },\n    // Recommendation score (0-10)\n    nps: 8,\n    // Feature usage\n    usedFeatures: [] as string[],\n    // Text feedback\n    improvements: '',\n    likedMost: '',\n    email: '',\n    // Would use again\n    wouldUseAgain: 'yes',\n  });\n\n  // Features list for checkboxes\n  const featuresList = [\n    { id: 'feature1', label: 'Dashboard' },\n    { id: 'feature2', label: 'Reports & Analytics' },\n    { id: 'feature3', label: 'User Management' },\n    { id: 'feature4', label: 'Automation Tools' },\n    { id: 'feature5', label: 'Mobile App' },\n    { id: 'feature6', label: 'Integrations' },\n    { id: 'feature7', label: 'Content Management' },\n    { id: 'feature8', label: 'Customization Options' },\n  ];\n\n  // Handle rating changes\n  const handleRatingChange = (\n    category: keyof typeof feedback.ratings,\n    value: number[]\n  ) => {\n    setFeedback({\n      ...feedback,\n      ratings: {\n        ...feedback.ratings,\n        [category]: value[0],\n      },\n    });\n  };\n\n  // Handle feature toggle\n  const toggleFeature = (featureId: string) => {\n    if (feedback.usedFeatures.includes(featureId)) {\n      setFeedback({\n        ...feedback,\n        usedFeatures: feedback.usedFeatures.filter((id) => id !== featureId),\n      });\n    } else {\n      setFeedback({\n        ...feedback,\n        usedFeatures: [...feedback.usedFeatures, featureId],\n      });\n    }\n  };\n\n  // Get average rating\n  const getAverageRating = () => {\n    const ratings = Object.values(feedback.ratings);\n    return (\n      ratings.reduce((sum, rating) => sum + rating, 0) / ratings.length\n    ).toFixed(1);\n  };\n\n  // Get NPS category\n  const getNPSCategory = () => {\n    const score = feedback.nps;\n    if (score >= 9) return 'Promoter';\n    if (score >= 7) return 'Passive';\n    return 'Detractor';\n  };\n\n  // Get stars display for a rating\n  const getStarsDisplay = (rating: number) => {\n    return Array(5)\n      .fill(0)\n      .map((_, i) => {\n        const filled = i < Math.round(rating / 2);\n        return (\n          <StarIcon\n            key={i}\n            className={`h-5 w-5 ${\n              filled\n                ? 'fill-yellow-400 text-yellow-400'\n                : 'text-gray-300 dark:text-gray-600'\n            }`}\n          />\n        );\n      });\n  };\n\n  // Handle form navigation\n  const nextStep = () => {\n    setStep(step + 1);\n  };\n\n  const prevStep = () => {\n    setStep(step - 1);\n  };\n\n  // Handle form submission\n  const handleSubmit = (e: React.FormEvent) => {\n    e.preventDefault();\n    setSubmitted(true);\n  };\n\n  return (\n    <>\n      {/* Hero */}\n      <div className=\"relative overflow-hidden bg-gradient-to-b from-slate-50 to-white dark:from-slate-950 dark:to-slate-900\">\n        <div className=\"bg-grid-slate-200 dark:bg-grid-slate-800/20 absolute inset-0 bg-[size:24px_24px] opacity-10\"></div>\n\n        <div className=\"relative z-10 container mx-auto px-4 py-16 md:px-6 lg:py-24 2xl:max-w-[1400px]\">\n          <div className=\"mx-auto max-w-3xl\">\n            <div className=\"mb-8 text-center\">\n              {!submitted ? (\n                <>\n                  <Badge\n                    variant=\"outline\"\n                    className=\"mb-4 px-3 py-1 text-sm font-medium\"\n                  >\n                    Help us improve\n                  </Badge>\n                  <h1 className=\"mb-4 text-4xl font-bold tracking-tight sm:text-5xl\">\n                    Your feedback matters\n                  </h1>\n                  <p className=\"text-muted-foreground mx-auto max-w-2xl text-xl\">\n                    We value your opinion and would love to hear about your\n                    experience with our product.\n                  </p>\n                </>\n              ) : (\n                <>\n                  <Badge\n                    variant=\"outline\"\n                    className=\"mb-4 border-green-600 px-3 py-1 text-sm font-medium text-green-600\"\n                  >\n                    Success\n                  </Badge>\n                  <h1 className=\"mb-4 text-4xl font-bold tracking-tight sm:text-5xl\">\n                    Thanks for your feedback!\n                  </h1>\n                  <p className=\"text-muted-foreground mx-auto max-w-2xl text-xl\">\n                    Your insights help us create a better product for everyone.\n                  </p>\n                </>\n              )}\n            </div>\n\n            {!submitted ? (\n              <Card className=\"border shadow-sm\">\n                <CardHeader className=\"p-6\">\n                  {/* Progress steps */}\n                  <div className=\"mb-2\">\n                    <div className=\"flex items-center justify-between\">\n                      <div className=\"text-muted-foreground text-sm font-medium\">\n                        Step {step} of 3\n                      </div>\n                      <div className=\"text-sm font-medium\">\n                        {step === 1\n                          ? 'Overall Ratings'\n                          : step === 2\n                            ? 'Features & Experience'\n                            : 'Final Thoughts'}\n                      </div>\n                    </div>\n                    <div className=\"mt-2 h-2 w-full rounded-full bg-slate-100 dark:bg-slate-800\">\n                      <div\n                        className=\"bg-primary h-2 rounded-full transition-all\"\n                        style={{ width: `${(step / 3) * 100}%` }}\n                      ></div>\n                    </div>\n                  </div>\n                </CardHeader>\n\n                <CardContent className=\"p-6 pt-0\">\n                  <form onSubmit={handleSubmit}>\n                    {/* Step 1: Overall Rating */}\n                    {step === 1 && (\n                      <div className=\"space-y-6\">\n                        {/* Overall Satisfaction */}\n                        <div className=\"space-y-3\">\n                          <div className=\"flex items-center justify-between\">\n                            <Label htmlFor=\"overall-rating\">\n                              Overall Satisfaction\n                            </Label>\n                            <div className=\"flex items-center\">\n                              {getStarsDisplay(feedback.ratings.overall)}\n                              <span className=\"ml-2 text-sm font-medium\">\n                                {feedback.ratings.overall}/10\n                              </span>\n                            </div>\n                          </div>\n                          <Slider\n                            id=\"overall-rating\"\n                            min={1}\n                            max={10}\n                            step={1}\n                            value={[feedback.ratings.overall]}\n                            onValueChange={(value) =>\n                              handleRatingChange('overall', value)\n                            }\n                          />\n                          <div className=\"text-muted-foreground flex justify-between text-xs\">\n                            <span>Very Dissatisfied</span>\n                            <span>Very Satisfied</span>\n                          </div>\n                        </div>\n\n                        {/* Usability */}\n                        <div className=\"space-y-3\">\n                          <div className=\"flex items-center justify-between\">\n                            <Label htmlFor=\"usability-rating\">\n                              Usability & Ease of Use\n                            </Label>\n                            <span className=\"text-sm font-medium\">\n                              {feedback.ratings.usability}/10\n                            </span>\n                          </div>\n                          <Slider\n                            id=\"usability-rating\"\n                            min={1}\n                            max={10}\n                            step={1}\n                            value={[feedback.ratings.usability]}\n                            onValueChange={(value) =>\n                              handleRatingChange('usability', value)\n                            }\n                          />\n                        </div>\n\n                        {/* Features */}\n                        <div className=\"space-y-3\">\n                          <div className=\"flex items-center justify-between\">\n                            <Label htmlFor=\"features-rating\">\n                              Features & Functionality\n                            </Label>\n                            <span className=\"text-sm font-medium\">\n                              {feedback.ratings.features}/10\n                            </span>\n                          </div>\n                          <Slider\n                            id=\"features-rating\"\n                            min={1}\n                            max={10}\n                            step={1}\n                            value={[feedback.ratings.features]}\n                            onValueChange={(value) =>\n                              handleRatingChange('features', value)\n                            }\n                          />\n                        </div>\n\n                        {/* Support */}\n                        <div className=\"space-y-3\">\n                          <div className=\"flex items-center justify-between\">\n                            <Label htmlFor=\"support-rating\">\n                              Customer Support\n                            </Label>\n                            <span className=\"text-sm font-medium\">\n                              {feedback.ratings.support}/10\n                            </span>\n                          </div>\n                          <Slider\n                            id=\"support-rating\"\n                            min={1}\n                            max={10}\n                            step={1}\n                            value={[feedback.ratings.support]}\n                            onValueChange={(value) =>\n                              handleRatingChange('support', value)\n                            }\n                          />\n                        </div>\n\n                        {/* Value */}\n                        <div className=\"space-y-3\">\n                          <div className=\"flex items-center justify-between\">\n                            <Label htmlFor=\"value-rating\">\n                              Value for Money\n                            </Label>\n                            <span className=\"text-sm font-medium\">\n                              {feedback.ratings.value}/10\n                            </span>\n                          </div>\n                          <Slider\n                            id=\"value-rating\"\n                            min={1}\n                            max={10}\n                            step={1}\n                            value={[feedback.ratings.value]}\n                            onValueChange={(value) =>\n                              handleRatingChange('value', value)\n                            }\n                          />\n                        </div>\n\n                        {/* Net Promoter Score */}\n                        <div className=\"space-y-3 pt-4\">\n                          <Label htmlFor=\"nps-rating\">\n                            How likely are you to recommend our product to\n                            others?\n                          </Label>\n                          <Slider\n                            id=\"nps-rating\"\n                            min={0}\n                            max={10}\n                            step={1}\n                            value={[feedback.nps]}\n                            onValueChange={(value) =>\n                              setFeedback({ ...feedback, nps: value[0]! })\n                            }\n                          />\n                          <div className=\"flex justify-between\">\n                            <span className=\"text-muted-foreground text-xs\">\n                              Not likely at all\n                            </span>\n                            <span className=\"text-sm font-medium\">\n                              {feedback.nps}/10\n                            </span>\n                            <span className=\"text-muted-foreground text-xs\">\n                              Extremely likely\n                            </span>\n                          </div>\n                          <div className=\"mt-2 text-sm font-medium\">\n                            Category:{' '}\n                            <span\n                              className={`inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium ${\n                                getNPSCategory() === 'Promoter'\n                                  ? 'bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-400'\n                                  : getNPSCategory() === 'Passive'\n                                    ? 'bg-yellow-100 text-yellow-800 dark:bg-yellow-900/30 dark:text-yellow-400'\n                                    : 'bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-400'\n                              }`}\n                            >\n                              {getNPSCategory()}\n                            </span>\n                          </div>\n                        </div>\n                      </div>\n                    )}\n\n                    {/* Step 2: Features & Experience */}\n                    {step === 2 && (\n                      <div className=\"space-y-6\">\n                        <div className=\"space-y-3\">\n                          <Label>\n                            Which features did you use? (Select all that apply)\n                          </Label>\n                          <div className=\"mt-2 grid gap-3 md:grid-cols-2\">\n                            {featuresList.map((feature) => (\n                              <div\n                                key={feature.id}\n                                className=\"flex items-center space-x-2\"\n                              >\n                                <Checkbox\n                                  id={feature.id}\n                                  checked={feedback.usedFeatures.includes(\n                                    feature.id\n                                  )}\n                                  onCheckedChange={() =>\n                                    toggleFeature(feature.id)\n                                  }\n                                />\n                                <Label\n                                  htmlFor={feature.id}\n                                  className=\"cursor-pointer text-sm font-normal\"\n                                >\n                                  {feature.label}\n                                </Label>\n                              </div>\n                            ))}\n                          </div>\n                        </div>\n\n                        <Separator />\n\n                        <div className=\"space-y-3\">\n                          <Label htmlFor=\"liked-most\">\n                            What did you like most about our product?\n                          </Label>\n                          <Textarea\n                            id=\"liked-most\"\n                            value={feedback.likedMost}\n                            onChange={(e) =>\n                              setFeedback({\n                                ...feedback,\n                                likedMost: e.target.value,\n                              })\n                            }\n                            placeholder=\"Share what you enjoyed about your experience...\"\n                            rows={3}\n                          />\n                        </div>\n\n                        <div className=\"space-y-3\">\n                          <Label htmlFor=\"improvements\">\n                            What do you think could be improved?\n                          </Label>\n                          <Textarea\n                            id=\"improvements\"\n                            value={feedback.improvements}\n                            onChange={(e) =>\n                              setFeedback({\n                                ...feedback,\n                                improvements: e.target.value,\n                              })\n                            }\n                            placeholder=\"Tell us how we can make your experience better...\"\n                            rows={3}\n                          />\n                        </div>\n                      </div>\n                    )}\n\n                    {/* Step 3: Final Thoughts */}\n                    {step === 3 && (\n                      <div className=\"space-y-6\">\n                        <div className=\"space-y-3\">\n                          <Label>\n                            Would you use our product again in the future?\n                          </Label>\n                          <RadioGroup\n                            value={feedback.wouldUseAgain}\n                            onValueChange={(value) =>\n                              setFeedback({ ...feedback, wouldUseAgain: value })\n                            }\n                            className=\"flex flex-col space-y-1\"\n                          >\n                            <div className=\"flex items-center space-x-2\">\n                              <RadioGroupItem value=\"yes\" id=\"use-again-yes\" />\n                              <Label\n                                htmlFor=\"use-again-yes\"\n                                className=\"font-normal\"\n                              >\n                                Yes, definitely\n                              </Label>\n                            </div>\n                            <div className=\"flex items-center space-x-2\">\n                              <RadioGroupItem\n                                value=\"maybe\"\n                                id=\"use-again-maybe\"\n                              />\n                              <Label\n                                htmlFor=\"use-again-maybe\"\n                                className=\"font-normal\"\n                              >\n                                Maybe, it depends\n                              </Label>\n                            </div>\n                            <div className=\"flex items-center space-x-2\">\n                              <RadioGroupItem value=\"no\" id=\"use-again-no\" />\n                              <Label\n                                htmlFor=\"use-again-no\"\n                                className=\"font-normal\"\n                              >\n                                No, I wouldn&apos;t\n                              </Label>\n                            </div>\n                          </RadioGroup>\n                        </div>\n\n                        <Separator />\n\n                        <div className=\"space-y-3\">\n                          <Label htmlFor=\"email\">\n                            Email address (optional, for follow-up questions)\n                          </Label>\n                          <Input\n                            id=\"email\"\n                            type=\"email\"\n                            placeholder=\"you@example.com\"\n                            value={feedback.email}\n                            onChange={(e) =>\n                              setFeedback({\n                                ...feedback,\n                                email: e.target.value,\n                              })\n                            }\n                          />\n                          <p className=\"text-muted-foreground text-xs\">\n                            We&apos;ll never share your email with anyone else.\n                          </p>\n                        </div>\n\n                        <div className=\"mt-4 rounded-lg bg-slate-50 p-4 dark:bg-slate-800/50\">\n                          <h3 className=\"mb-3 text-sm font-medium\">\n                            Summary of Your Feedback\n                          </h3>\n                          <div className=\"space-y-2\">\n                            <div className=\"flex justify-between text-sm\">\n                              <span className=\"text-muted-foreground\">\n                                Average Rating:\n                              </span>\n                              <div className=\"flex items-center\">\n                                {getStarsDisplay(\n                                  parseFloat(getAverageRating())\n                                )}\n                                <span className=\"ml-2\">\n                                  {getAverageRating()}/10\n                                </span>\n                              </div>\n                            </div>\n                            <div className=\"flex justify-between text-sm\">\n                              <span className=\"text-muted-foreground\">\n                                Recommendation:\n                              </span>\n                              <span>\n                                {feedback.nps}/10 ({getNPSCategory()})\n                              </span>\n                            </div>\n                            <div className=\"flex justify-between text-sm\">\n                              <span className=\"text-muted-foreground\">\n                                Features Used:\n                              </span>\n                              <span>\n                                {feedback.usedFeatures.length}/\n                                {featuresList.length}\n                              </span>\n                            </div>\n                          </div>\n                        </div>\n                      </div>\n                    )}\n\n                    {/* Navigation Buttons */}\n                    <div className=\"mt-8 flex justify-between\">\n                      {step > 1 ? (\n                        <Button\n                          type=\"button\"\n                          variant=\"outline\"\n                          onClick={prevStep}\n                        >\n                          Back\n                        </Button>\n                      ) : (\n                        <div></div>\n                      )}\n                      {step < 3 ? (\n                        <Button type=\"button\" onClick={nextStep}>\n                          Continue\n                          <ChevronRightIcon className=\"ml-2 h-4 w-4\" />\n                        </Button>\n                      ) : (\n                        <Button type=\"submit\">\n                          Submit Feedback\n                          <ChevronRightIcon className=\"ml-2 h-4 w-4\" />\n                        </Button>\n                      )}\n                    </div>\n                  </form>\n                </CardContent>\n              </Card>\n            ) : (\n              <Card className=\"border p-8 text-center shadow-sm\">\n                <div className=\"mx-auto mb-6 flex h-20 w-20 items-center justify-center rounded-full bg-green-100 dark:bg-green-900/30\">\n                  <CheckIcon className=\"h-10 w-10 text-green-600 dark:text-green-400\" />\n                </div>\n                <div className=\"mb-6 space-y-2\">\n                  <h3 className=\"text-2xl font-bold\">\n                    Feedback Successfully Submitted\n                  </h3>\n                  <p className=\"text-muted-foreground\">\n                    Thank you for taking the time to share your experience with\n                    us.\n                  </p>\n                </div>\n\n                <div className=\"mx-auto mb-6 max-w-md rounded-lg bg-slate-50 p-6 dark:bg-slate-800/50\">\n                  <div className=\"space-y-4\">\n                    <div className=\"text-center\">\n                      <div className=\"text-muted-foreground mb-1 text-sm\">\n                        Your Average Rating\n                      </div>\n                      <div className=\"flex items-center justify-center\">\n                        {getStarsDisplay(parseFloat(getAverageRating()))}\n                        <span className=\"ml-2 text-lg font-bold\">\n                          {getAverageRating()}/10\n                        </span>\n                      </div>\n                    </div>\n                    <Separator />\n                    <div className=\"text-center\">\n                      <div className=\"text-muted-foreground mb-1 text-sm\">\n                        Your Recommendation Score\n                      </div>\n                      <div className=\"text-lg font-bold\">{feedback.nps}/10</div>\n                      <div\n                        className={`inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium ${\n                          getNPSCategory() === 'Promoter'\n                            ? 'bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-400'\n                            : getNPSCategory() === 'Passive'\n                              ? 'bg-yellow-100 text-yellow-800 dark:bg-yellow-900/30 dark:text-yellow-400'\n                              : 'bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-400'\n                        }`}\n                      >\n                        {getNPSCategory()}\n                      </div>\n                    </div>\n                  </div>\n                </div>\n\n                <div className=\"space-y-3\">\n                  <p className=\"text-muted-foreground text-sm\">\n                    We constantly work to improve our product based on feedback\n                    like yours.\n                    {feedback.email &&\n                      \" We'll follow up with you soon if we have any questions.\"}\n                  </p>\n                  <Button variant=\"outline\" onClick={() => setSubmitted(false)}>\n                    Submit Another Response\n                  </Button>\n                </div>\n              </Card>\n            )}\n\n            <div className=\"text-muted-foreground mt-8 text-center text-sm\">\n              <p>\n                Need immediate assistance? Contact our support team at\n                support@example.com\n              </p>\n            </div>\n          </div>\n        </div>\n      </div>\n      {/* End Hero */}\n    </>\n  );\n}\n","type":"registry:component","target":"components/blocks/marketing/hero-forms/user-feedback-form.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/textarea.tsx","content":"import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Textarea({ className, ...props }: React.ComponentProps<\"textarea\">) {\n  return (\n    <textarea\n      data-slot=\"textarea\"\n      className={cn(\n        \"flex field-sizing-content min-h-16 w-full rounded-md border border-input bg-transparent px-2.5 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none placeholder:text-muted-foreground 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 md:text-sm dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nexport { Textarea }\n","type":"registry:ui","target":"components/ui/textarea.tsx"},{"path":"components/ui/input.tsx","content":"import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Input({ className, type, ...props }: React.ComponentProps<\"input\">) {\n  return (\n    <input\n      type={type}\n      data-slot=\"input\"\n      className={cn(\n        \"h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-2.5 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nexport { Input }\n","type":"registry:ui","target":"components/ui/input.tsx"},{"path":"components/ui/label.tsx","content":"\"use client\"\n\nimport * as React from \"react\"\nimport { Label as LabelPrimitive } from \"radix-ui\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Label({\n  className,\n  ...props\n}: React.ComponentProps<typeof LabelPrimitive.Root>) {\n  return (\n    <LabelPrimitive.Root\n      data-slot=\"label\"\n      className={cn(\n        \"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\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nexport { Label }\n","type":"registry:ui","target":"components/ui/label.tsx"},{"path":"components/ui/slider.tsx","content":"\"use client\"\n\nimport * as React from \"react\"\nimport { Slider as SliderPrimitive } from \"radix-ui\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Slider({\n  className,\n  defaultValue,\n  value,\n  min = 0,\n  max = 100,\n  ...props\n}: React.ComponentProps<typeof SliderPrimitive.Root>) {\n  const _values = React.useMemo(\n    () =>\n      Array.isArray(value)\n        ? value\n        : Array.isArray(defaultValue)\n          ? defaultValue\n          : [min, max],\n    [value, defaultValue, min, max]\n  )\n\n  return (\n    <SliderPrimitive.Root\n      data-slot=\"slider\"\n      defaultValue={defaultValue}\n      value={value}\n      min={min}\n      max={max}\n      className={cn(\n        \"relative flex w-full touch-none items-center select-none data-disabled:opacity-50 data-vertical:h-full data-vertical:min-h-40 data-vertical:w-auto data-vertical:flex-col\",\n        className\n      )}\n      {...props}\n    >\n      <SliderPrimitive.Track\n        data-slot=\"slider-track\"\n        className=\"relative grow overflow-hidden rounded-full bg-muted data-horizontal:h-1.5 data-horizontal:w-full data-vertical:h-full data-vertical:w-1.5\"\n      >\n        <SliderPrimitive.Range\n          data-slot=\"slider-range\"\n          className=\"absolute bg-primary select-none data-horizontal:h-full data-vertical:w-full\"\n        />\n      </SliderPrimitive.Track>\n      {Array.from({ length: _values.length }, (_, index) => (\n        <SliderPrimitive.Thumb\n          data-slot=\"slider-thumb\"\n          key={index}\n          className=\"block size-4 shrink-0 rounded-full border border-primary bg-white shadow-sm ring-ring/50 transition-[color,box-shadow] select-none hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50\"\n        />\n      ))}\n    </SliderPrimitive.Root>\n  )\n}\n\nexport { Slider }\n","type":"registry:ui","target":"components/ui/slider.tsx"},{"path":"components/ui/radio-group.tsx","content":"\"use client\"\n\nimport * as React from \"react\"\nimport { RadioGroup as RadioGroupPrimitive } from \"radix-ui\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction RadioGroup({\n  className,\n  ...props\n}: React.ComponentProps<typeof RadioGroupPrimitive.Root>) {\n  return (\n    <RadioGroupPrimitive.Root\n      data-slot=\"radio-group\"\n      className={cn(\"grid w-full gap-3\", className)}\n      {...props}\n    />\n  )\n}\n\nfunction RadioGroupItem({\n  className,\n  ...props\n}: React.ComponentProps<typeof RadioGroupPrimitive.Item>) {\n  return (\n    <RadioGroupPrimitive.Item\n      data-slot=\"radio-group-item\"\n      className={cn(\n        \"group/radio-group-item peer relative flex aspect-square size-4 shrink-0 rounded-full border border-input outline-none 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\",\n        className\n      )}\n      {...props}\n    >\n      <RadioGroupPrimitive.Indicator\n        data-slot=\"radio-group-indicator\"\n        className=\"flex size-4 items-center justify-center\"\n      >\n        <span className=\"absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 rounded-full bg-primary-foreground\" />\n      </RadioGroupPrimitive.Indicator>\n    </RadioGroupPrimitive.Item>\n  )\n}\n\nexport { RadioGroup, RadioGroupItem }\n","type":"registry:ui","target":"components/ui/radio-group.tsx"},{"path":"components/ui/checkbox.tsx","content":"\"use client\"\n\nimport * as React from \"react\"\nimport { Checkbox as CheckboxPrimitive } from \"radix-ui\"\n\nimport { cn } from \"@/lib/utils\"\nimport { CheckIcon } from \"lucide-react\"\n\nfunction Checkbox({\n  className,\n  ...props\n}: React.ComponentProps<typeof CheckboxPrimitive.Root>) {\n  return (\n    <CheckboxPrimitive.Root\n      data-slot=\"checkbox\"\n      className={cn(\n        \"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\",\n        className\n      )}\n      {...props}\n    >\n      <CheckboxPrimitive.Indicator\n        data-slot=\"checkbox-indicator\"\n        className=\"grid place-content-center text-current transition-none [&>svg]:size-3.5\"\n      >\n        <CheckIcon\n        />\n      </CheckboxPrimitive.Indicator>\n    </CheckboxPrimitive.Root>\n  )\n}\n\nexport { Checkbox }\n","type":"registry:ui","target":"components/ui/checkbox.tsx"},{"path":"components/ui/card.tsx","content":"import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Card({\n  className,\n  size = \"default\",\n  ...props\n}: React.ComponentProps<\"div\"> & { size?: \"default\" | \"sm\" }) {\n  return (\n    <div\n      data-slot=\"card\"\n      data-size={size}\n      className={cn(\n        \"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\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nfunction CardHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n  return (\n    <div\n      data-slot=\"card-header\"\n      className={cn(\n        \"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\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nfunction CardTitle({ className, ...props }: React.ComponentProps<\"div\">) {\n  return (\n    <div\n      data-slot=\"card-title\"\n      className={cn(\n        \"font-heading text-base leading-normal font-medium group-data-[size=sm]/card:text-sm\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nfunction CardDescription({ className, ...props }: React.ComponentProps<\"div\">) {\n  return (\n    <div\n      data-slot=\"card-description\"\n      className={cn(\"text-sm text-muted-foreground\", className)}\n      {...props}\n    />\n  )\n}\n\nfunction CardAction({ className, ...props }: React.ComponentProps<\"div\">) {\n  return (\n    <div\n      data-slot=\"card-action\"\n      className={cn(\n        \"col-start-2 row-span-2 row-start-1 self-start justify-self-end\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nfunction CardContent({ className, ...props }: React.ComponentProps<\"div\">) {\n  return (\n    <div\n      data-slot=\"card-content\"\n      className={cn(\"px-6 group-data-[size=sm]/card:px-4\", className)}\n      {...props}\n    />\n  )\n}\n\nfunction CardFooter({ className, ...props }: React.ComponentProps<\"div\">) {\n  return (\n    <div\n      data-slot=\"card-footer\"\n      className={cn(\n        \"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\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nexport {\n  Card,\n  CardHeader,\n  CardFooter,\n  CardTitle,\n  CardAction,\n  CardDescription,\n  CardContent,\n}\n","type":"registry:ui","target":"components/ui/card.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/separator.tsx","content":"\"use client\";\n\nimport * as React from \"react\";\nimport { Separator as SeparatorPrimitive } from \"radix-ui\";\n\nimport { cn } from \"@/lib/utils\";\n\nfunction Separator({\n  className,\n  orientation = \"horizontal\",\n  decorative = true,\n  ...props\n}: React.ComponentProps<typeof SeparatorPrimitive.Root>) {\n  return (\n    <SeparatorPrimitive.Root\n      data-slot=\"separator\"\n      decorative={decorative}\n      orientation={orientation}\n      className={cn(\n        \"shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px \",\n        className\n      )}\n      {...props}\n    />\n  );\n}\n\nexport { Separator };\n","type":"registry:ui","target":"components/ui/separator.tsx"}],"description":"A hero with a user feedback form for comments, ratings, and contact info. Collects honest input from visitors to guide the next product update.","dependencies":["class-variance-authority","lucide-react","radix-ui"]}