# Job Application Form

> A hero with a job application form for contact details and a resume upload. Lets candidates apply right from the top of a careers page.

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-hero-forms-job-application-form).

- Page, with a live preview: https://shadcn.exchange/r/shadcn-ui-blocks/marketing-hero-forms-job-application-form
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/shadcn-ui-blocks/marketing-hero-forms-job-application-form-light-90465ea59f5e396a.png
- Registry item: https://www.shadcn-ui-blocks.com/r/marketing-hero-forms-job-application-form.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-hero-forms-job-application-form.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/hero-forms/job-application-form.tsx`

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

import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
import { Label } from '@/components/ui/label';
import { Textarea } from '@/components/ui/textarea';
import { Checkbox } from '@/components/ui/checkbox';
import {
  Select,
  SelectContent,
  SelectItem,
  SelectTrigger,
  SelectValue,
} from '@/components/ui/select';
import {
  FileIcon,
  UploadIcon,
  XIcon,
  CheckIcon,
  BriefcaseIcon,
  BuildingIcon,
  MapPinIcon,
  ClockIcon,
} from 'lucide-react';

export default function HeroFormJobApplication() {
  const [step, setStep] = useState(1);
  const [resumeFile, setResumeFile] = useState<File | null>(null);
  const [coverLetterFile, setCoverLetterFile] = useState<File | null>(null);
  const [submitted, setSubmitted] = useState(false);

  const totalSteps = 3;

  const handleNext = () => {
    if (step < totalSteps) {
      setStep(step + 1);
    } else {
      setSubmitted(true);
    }
  };

  const handleBack = () => {
    if (step > 1) {
      setStep(step - 1);
    }
  };

  const handleResumeChange = (e: React.ChangeEvent<HTMLInputElement>) => {
    if (e.target.files && e.target.files[0]) {
      setResumeFile(e.target.files[0]);
    }
  };

  const handleCoverLetterChange = (e: React.ChangeEvent<HTMLInputElement>) => {
    if (e.target.files && e.target.files[0]) {
      setCoverLetterFile(e.target.files[0]);
    }
  };

  const removeResume = () => {
    setResumeFile(null);
  };

  const removeCoverLetter = () => {
    setCoverLetterFile(null);
  };

  return (
    <>
      {/* Hero */}
      <div className="relative overflow-hidden bg-gradient-to-b from-blue-50/50 to-white dark:from-slate-950 dark:to-slate-900">
        <div className="bg-grid-slate-100 dark:bg-grid-slate-800/10 absolute inset-0 bg-[size:40px_40px] opacity-20"></div>

        <div className="relative z-10 container mx-auto px-4 py-16 md:px-6 lg:py-24 2xl:max-w-[1400px]">
          <div className="grid items-start gap-12 lg:grid-cols-2">
            {/* Left Content */}
            <div>
              <div className="mb-6 inline-flex items-center rounded-full bg-blue-100 px-3 py-1 text-sm font-medium text-blue-800 dark:bg-blue-900/30 dark:text-blue-300">
                <BriefcaseIcon className="mr-1 h-4 w-4" />
                Career Opportunity
              </div>

              <h1 className="mb-4 text-4xl font-bold tracking-tight lg:text-5xl">
                Senior Product Designer
              </h1>

              <div className="my-6 flex flex-wrap gap-4">
                <div className="text-muted-foreground flex items-center text-sm">
                  <BuildingIcon className="mr-1 h-4 w-4" />
                  <span>Design Team</span>
                </div>
                <div className="text-muted-foreground flex items-center text-sm">
                  <MapPinIcon className="mr-1 h-4 w-4" />
                  <span>San Francisco, CA (Remote Available)</span>
                </div>
                <div className="text-muted-foreground flex items-center text-sm">
                  <ClockIcon className="mr-1 h-4 w-4" />
                  <span>Full-time</span>
                </div>
              </div>

              <p className="text-muted-foreground mb-8 text-xl">
                Join our growing design team and help shape the future of our
                product. We&apos;re looking for a talented designer with a
                passion for creating exceptional user experiences.
              </p>

              <div className="mt-8 space-y-6">
                <div>
                  <h2 className="mb-3 text-xl font-semibold">
                    What you&apos;ll do
                  </h2>
                  <ul className="space-y-2">
                    <li className="flex">
                      <span className="mr-2">•</span>
                      <span>
                        Lead design efforts across multiple product areas
                      </span>
                    </li>
                    <li className="flex">
                      <span className="mr-2">•</span>
                      <span>
                        Collaborate with product managers and engineers to
                        define and implement solutions
                      </span>
                    </li>
                    <li className="flex">
                      <span className="mr-2">•</span>
                      <span>
                        Create user flows, wireframes, prototypes, and
                        high-fidelity designs
                      </span>
                    </li>
                    <li className="flex">
                      <span className="mr-2">•</span>
                      <span>Conduct user research and usability testing</span>
                    </li>
                  </ul>
                </div>

                <div>
                  <h2 className="mb-3 text-xl font-semibold">Requirements</h2>
                  <ul className="space-y-2">
                    <li className="flex">
                      <span className="mr-2">•</span>
                      <span>5+ years of experience in product design</span>
                    </li>
                    <li className="flex">
                      <span className="mr-2">•</span>
                      <span>
                        Strong portfolio demonstrating UI/UX expertise
                      </span>
                    </li>
                    <li className="flex">
                      <span className="mr-2">•</span>
                      <span>
                        Proficiency with modern design tools (Figma, Adobe XD)
                      </span>
                    </li>
                    <li className="flex">
                      <span className="mr-2">•</span>
                      <span>
                        Excellent communication and collaboration skills
                      </span>
                    </li>
                  </ul>
                </div>

                <div>
                  <h2 className="mb-3 text-xl font-semibold">Benefits</h2>
                  <ul className="space-y-2">
                    <li className="flex">
                      <span className="mr-2">•</span>
                      <span>Competitive salary and equity package</span>
                    </li>
                    <li className="flex">
                      <span className="mr-2">•</span>
                      <span>
                        Comprehensive health, dental, and vision insurance
                      </span>
                    </li>
                    <li className="flex">
                      <span className="mr-2">•</span>
                      <span>Flexible PTO policy and remote work options</span>
                    </li>
                    <li className="flex">
                      <span className="mr-2">•</span>
                      <span>Professional development budget</span>
                    </li>
                  </ul>
                </div>
              </div>
            </div>

            {/* Right Form */}
            <div className="lg:sticky lg:top-10">
              <div className="bg-background rounded-xl border p-8 shadow-lg">
                {!submitted ? (
                  <>
                    <div className="mb-6 flex items-center justify-between">
                      <h2 className="text-2xl font-bold">Apply Now</h2>
                      <div className="text-muted-foreground text-sm">
                        Step {step} of {totalSteps}
                      </div>
                    </div>

                    {/* Progress Indicator */}
                    <div className="mb-8">
                      <div className="bg-muted h-1 w-full overflow-hidden rounded-full">
                        <div
                          className="bg-primary h-full transition-all duration-300"
                          style={{ width: `${(step / totalSteps) * 100}%` }}
                        ></div>
                      </div>
                    </div>

                    {/* Step 1: Personal Information */}
                    {step === 1 && (
                      <div className="space-y-4">
                        <h3 className="text-lg font-semibold">
                          Personal Information
                        </h3>

                        <div className="grid grid-cols-2 gap-4">
                          <div>
                            <Label htmlFor="firstName" className="mb-2">
                              First name
                            </Label>
                            <Input id="firstName" placeholder="John" required />
                          </div>
                          <div>
                            <Label htmlFor="lastName" className="mb-2">
                              Last name
                            </Label>
                            <Input id="lastName" placeholder="Doe" required />
                          </div>
                        </div>

                        <div>
                          <Label htmlFor="email" className="mb-2">
                            Email address
                          </Label>
                          <Input
                            id="email"
                            type="email"
                            placeholder="john@example.com"
                            required
                          />
                        </div>

                        <div>
                          <Label htmlFor="phone" className="mb-2">
                            Phone number
                          </Label>
                          <Input
                            id="phone"
                            placeholder="+1 (555) 000-0000"
                            required
                          />
                        </div>

                        <div>
                          <Label htmlFor="location" className="mb-2">
                            Current location
                          </Label>
                          <Input id="location" placeholder="City, State" />
                        </div>

                        <div>
                          <Label htmlFor="linkedIn" className="mb-2">
                            LinkedIn profile (optional)
                          </Label>
                          <Input
                            id="linkedIn"
                            placeholder="https://linkedin.com/in/username"
                          />
                        </div>

                        <div>
                          <Label htmlFor="portfolio" className="mb-2">
                            Portfolio URL (optional)
                          </Label>
                          <Input
                            id="portfolio"
                            placeholder="https://yourportfolio.com"
                          />
                        </div>

                        <Button onClick={handleNext} className="w-full">
                          Continue
                        </Button>
                      </div>
                    )}

                    {/* Step 2: Experience & Files */}
                    {step === 2 && (
                      <div className="space-y-5">
                        <h3 className="text-lg font-semibold">
                          Experience & Documents
                        </h3>

                        <div>
                          <Label htmlFor="experience" className="mb-2">
                            Years of experience
                          </Label>
                          <Select>
                            <SelectTrigger id="experience">
                              <SelectValue placeholder="Select years of experience" />
                            </SelectTrigger>
                            <SelectContent>
                              <SelectItem value="1-2">1-2 years</SelectItem>
                              <SelectItem value="3-5">3-5 years</SelectItem>
                              <SelectItem value="5-7">5-7 years</SelectItem>
                              <SelectItem value="8-10">8-10 years</SelectItem>
                              <SelectItem value="10+">10+ years</SelectItem>
                            </SelectContent>
                          </Select>
                        </div>

                        <div>
                          <Label htmlFor="education" className="mb-2">
                            Highest education
                          </Label>
                          <Select>
                            <SelectTrigger id="education">
                              <SelectValue placeholder="Select education" />
                            </SelectTrigger>
                            <SelectContent>
                              <SelectItem value="high-school">
                                High School
                              </SelectItem>
                              <SelectItem value="associates">
                                Associate&apos;s Degree
                              </SelectItem>
                              <SelectItem value="bachelors">
                                Bachelor&apos;s Degree
                              </SelectItem>
                              <SelectItem value="masters">
                                Master&apos;s Degree
                              </SelectItem>
                              <SelectItem value="doctorate">
                                Doctorate
                              </SelectItem>
                            </SelectContent>
                          </Select>
                        </div>

                        <div>
                          <Label className="mb-2">Resume/CV</Label>
                          <div className="mt-1.5">
                            {!resumeFile ? (
                              <div className="hover:bg-muted/50 rounded-lg border-2 border-dashed p-6 text-center transition-colors">
                                <div className="flex flex-col items-center">
                                  <UploadIcon className="text-muted-foreground mb-2 h-8 w-8" />
                                  <Label
                                    htmlFor="resume-upload"
                                    className="text-primary cursor-pointer text-sm hover:underline"
                                  >
                                    Upload Resume
                                  </Label>
                                  <Input
                                    id="resume-upload"
                                    type="file"
                                    accept=".pdf,.doc,.docx"
                                    className="hidden"
                                    onChange={handleResumeChange}
                                  />
                                  <p className="text-muted-foreground mt-2 text-xs">
                                    PDF, DOC or DOCX (max 5MB)
                                  </p>
                                </div>
                              </div>
                            ) : (
                              <div className="bg-muted/30 flex items-center justify-between rounded-lg p-3">
                                <div className="flex items-center">
                                  <FileIcon className="text-primary mr-2 h-5 w-5" />
                                  <span className="truncate text-sm">
                                    {resumeFile.name}
                                  </span>
                                </div>
                                <Button
                                  variant="ghost"
                                  size="icon"
                                  onClick={removeResume}
                                  className="h-8 w-8"
                                >
                                  <XIcon className="h-4 w-4" />
                                </Button>
                              </div>
                            )}
                          </div>
                        </div>

                        <div>
                          <Label className="mb-2">
                            Cover Letter (Optional)
                          </Label>
                          <div className="mt-1.5">
                            {!coverLetterFile ? (
                              <div className="hover:bg-muted/50 rounded-lg border-2 border-dashed p-6 text-center transition-colors">
                                <div className="flex flex-col items-center">
                                  <UploadIcon className="text-muted-foreground mb-2 h-8 w-8" />
                                  <Label
                                    htmlFor="cover-letter-upload"
                                    className="text-primary cursor-pointer text-sm hover:underline"
                                  >
                                    Upload Cover Letter
                                  </Label>
                                  <Input
                                    id="cover-letter-upload"
                                    type="file"
                                    accept=".pdf,.doc,.docx"
                                    className="hidden"
                                    onChange={handleCoverLetterChange}
                                  />
                                  <p className="text-muted-foreground mt-2 text-xs">
                                    PDF, DOC or DOCX (max 5MB)
                                  </p>
                                </div>
                              </div>
                            ) : (
                              <div className="bg-muted/30 flex items-center justify-between rounded-lg p-3">
                                <div className="flex items-center">
                                  <FileIcon className="text-primary mr-2 h-5 w-5" />
                                  <span className="truncate text-sm">
                                    {coverLetterFile.name}
                                  </span>
                                </div>
                                <Button
                                  variant="ghost"
                                  size="icon"
                                  onClick={removeCoverLetter}
                                  className="h-8 w-8"
                                >
                                  <XIcon className="h-4 w-4" />
                                </Button>
                              </div>
                            )}
                          </div>
                        </div>

                        <div className="flex justify-between pt-4">
                          <Button variant="outline" onClick={handleBack}>
                            Back
                          </Button>
                          <Button onClick={handleNext} disabled={!resumeFile}>
                            Continue
                          </Button>
                        </div>
                      </div>
                    )}

                    {/* Step 3: Additional Information */}
                    {step === 3 && (
                      <div className="space-y-5">
                        <h3 className="text-lg font-semibold">
                          Additional Information
                        </h3>

                        <div>
                          <Label htmlFor="startDate" className="mb-2">
                            When can you start?
                          </Label>
                          <Select>
                            <SelectTrigger id="startDate">
                              <SelectValue placeholder="Select availability" />
                            </SelectTrigger>
                            <SelectContent>
                              <SelectItem value="immediately">
                                Immediately
                              </SelectItem>
                              <SelectItem value="two-weeks">
                                2 weeks notice
                              </SelectItem>
                              <SelectItem value="one-month">
                                1 month notice
                              </SelectItem>
                              <SelectItem value="custom">Other</SelectItem>
                            </SelectContent>
                          </Select>
                        </div>

                        <div>
                          <Label htmlFor="salary" className="mb-2">
                            Salary expectations (USD)
                          </Label>
                          <Input id="salary" placeholder="120,000" />
                        </div>

                        <div>
                          <Label htmlFor="whyJoin" className="mb-2">
                            Why do you want to join our team?
                          </Label>
                          <Textarea
                            id="whyJoin"
                            placeholder="Tell us why you're interested in this position..."
                            rows={4}
                          />
                        </div>

                        <div className="space-y-2">
                          <Label className="mb-2">
                            How did you hear about this position?
                          </Label>
                          <Select>
                            <SelectTrigger>
                              <SelectValue placeholder="Select an option" />
                            </SelectTrigger>
                            <SelectContent>
                              <SelectItem value="linkedin">LinkedIn</SelectItem>
                              <SelectItem value="indeed">Indeed</SelectItem>
                              <SelectItem value="glassdoor">
                                Glassdoor
                              </SelectItem>
                              <SelectItem value="referral">
                                Employee Referral
                              </SelectItem>
                              <SelectItem value="other">Other</SelectItem>
                            </SelectContent>
                          </Select>
                        </div>

                        <div className="mt-4 flex items-start space-x-2">
                          <Checkbox id="privacy" className="mt-1" />
                          <Label
                            htmlFor="privacy"
                            className="text-sm font-normal"
                          >
                            I agree to the{' '}
                            <a
                              href="#"
                              className="text-primary hover:underline"
                            >
                              privacy policy
                            </a>{' '}
                            and consent to having my personal data processed.
                          </Label>
                        </div>

                        <div className="flex justify-between pt-4">
                          <Button variant="outline" onClick={handleBack}>
                            Back
                          </Button>
                          <Button onClick={handleNext}>
                            Submit Application
                          </Button>
                        </div>
                      </div>
                    )}
                  </>
                ) : (
                  <div className="py-6 text-center">
                    <div className="mx-auto mb-6 flex h-16 w-16 items-center justify-center rounded-full bg-green-100">
                      <CheckIcon className="h-8 w-8 text-green-600" />
                    </div>

                    <h2 className="mb-2 text-2xl font-bold">
                      Application Submitted!
                    </h2>
                    <p className="text-muted-foreground mb-6">
                      Thank you for applying for the Senior Product Designer
                      position. We&apos;ll review your application and get back
                      to you soon.
                    </p>

                    <div className="bg-muted/30 mb-6 rounded-lg p-6 text-left">
                      <h3 className="mb-2 font-medium">What happens next?</h3>
                      <ol className="text-muted-foreground list-inside list-decimal space-y-2 text-sm">
                        <li>
                          Our team will review your application (typically
                          within 2-3 business days)
                        </li>
                        <li>
                          If your qualifications match our needs, we&apos;ll
                          reach out to schedule a phone interview
                        </li>
                        <li>
                          Successful candidates will be invited for a remote
                          portfolio review
                        </li>
                        <li>
                          Final interviews with the design team and hiring
                          manager
                        </li>
                      </ol>
                    </div>

                    <Button className="w-full">View Other Openings</Button>
                  </div>
                )}
              </div>
            </div>
          </div>
        </div>
      </div>
      {/* End Hero */}
    </>
  );
}
```

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

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

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

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

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

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

export { Button, buttonVariants }
```

### `components/ui/input.tsx`

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

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

function Input({ className, type, ...props }: React.ComponentProps<"input">) {
  return (
    <input
      type={type}
      data-slot="input"
      className={cn(
        "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",
        className
      )}
      {...props}
    />
  )
}

export { Input }
```

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

```tsx
"use client"

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

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

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

export { Label }
```

### `components/ui/textarea.tsx`

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

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

function Textarea({ className, ...props }: React.ComponentProps<"textarea">) {
  return (
    <textarea
      data-slot="textarea"
      className={cn(
        "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",
        className
      )}
      {...props}
    />
  )
}

export { Textarea }
```

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

```tsx
"use client"

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

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

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

export { Checkbox }
```

### `components/ui/select.tsx`

```tsx
"use client"

import * as React from "react"
import { Select as SelectPrimitive } from "radix-ui"

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

function Select({
  ...props
}: React.ComponentProps<typeof SelectPrimitive.Root>) {
  return <SelectPrimitive.Root data-slot="select" {...props} />
}

function SelectGroup({
  className,
  ...props
}: React.ComponentProps<typeof SelectPrimitive.Group>) {
  return (
    <SelectPrimitive.Group
      data-slot="select-group"
      className={cn("scroll-my-1 p-1", className)}
      {...props}
    />
  )
}

function SelectValue({
  ...props
}: React.ComponentProps<typeof SelectPrimitive.Value>) {
  return <SelectPrimitive.Value data-slot="select-value" {...props} />
}

function SelectTrigger({
  className,
  size = "default",
  children,
  ...props
}: React.ComponentProps<typeof SelectPrimitive.Trigger> & {
  size?: "sm" | "default"
}) {
  return (
    <SelectPrimitive.Trigger
      data-slot="select-trigger"
      data-size={size}
      className={cn(
        "flex w-fit items-center justify-between gap-1.5 rounded-md border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none 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 data-placeholder:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 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",
        className
      )}
      {...props}
    >
      {children}
      <SelectPrimitive.Icon asChild>
        <ChevronDownIcon className="pointer-events-none size-4 text-muted-foreground" />
      </SelectPrimitive.Icon>
    </SelectPrimitive.Trigger>
  )
}

function SelectContent({
  className,
  children,
  position = "item-aligned",
  align = "center",
  ...props
}: React.ComponentProps<typeof SelectPrimitive.Content>) {
  return (
    <SelectPrimitive.Portal>
      <SelectPrimitive.Content
        data-slot="select-content"
        data-align-trigger={position === "item-aligned"}
        className={cn("relative z-50 max-h-(--radix-select-content-available-height) min-w-36 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none 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-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", position ==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", className )}
        position={position}
        align={align}
        {...props}
      >
        <SelectScrollUpButton />
        <SelectPrimitive.Viewport
          data-position={position}
          className={cn(
            "data-[position=popper]:h-(--radix-select-trigger-height) data-[position=popper]:w-full data-[position=popper]:min-w-(--radix-select-trigger-width)",
            position === "popper" && ""
          )}
        >
          {children}
        </SelectPrimitive.Viewport>
        <SelectScrollDownButton />
      </SelectPrimitive.Content>
    </SelectPrimitive.Portal>
  )
}

function SelectLabel({
  className,
  ...props
}: React.ComponentProps<typeof SelectPrimitive.Label>) {
  return (
    <SelectPrimitive.Label
      data-slot="select-label"
      className={cn("px-2 py-1.5 text-xs text-muted-foreground", className)}
      {...props}
    />
  )
}

function SelectItem({
  className,
  children,
  ...props
}: React.ComponentProps<typeof SelectPrimitive.Item>) {
  return (
    <SelectPrimitive.Item
      data-slot="select-item"
      className={cn(
        "relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
        className
      )}
      {...props}
    >
      <span className="pointer-events-none absolute right-2 flex size-4 items-center justify-center">
        <SelectPrimitive.ItemIndicator>
          <CheckIcon className="pointer-events-none" />
        </SelectPrimitive.ItemIndicator>
      </span>
      <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>
    </SelectPrimitive.Item>
  )
}

function SelectSeparator({
  className,
  ...props
}: React.ComponentProps<typeof SelectPrimitive.Separator>) {
  return (
    <SelectPrimitive.Separator
      data-slot="select-separator"
      className={cn("pointer-events-none -mx-1 my-1 h-px bg-border", className)}
      {...props}
    />
  )
}

function SelectScrollUpButton({
  className,
  ...props
}: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>) {
  return (
    <SelectPrimitive.ScrollUpButton
      data-slot="select-scroll-up-button"
      className={cn(
        "z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",
        className
      )}
      {...props}
    >
      <ChevronUpIcon
      />
    </SelectPrimitive.ScrollUpButton>
  )
}

function SelectScrollDownButton({
  className,
  ...props
}: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>) {
  return (
    <SelectPrimitive.ScrollDownButton
      data-slot="select-scroll-down-button"
      className={cn(
        "z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",
        className
      )}
      {...props}
    >
      <ChevronDownIcon
      />
    </SelectPrimitive.ScrollDownButton>
  )
}

export {
  Select,
  SelectContent,
  SelectGroup,
  SelectItem,
  SelectLabel,
  SelectScrollDownButton,
  SelectScrollUpButton,
  SelectSeparator,
  SelectTrigger,
  SelectValue,
}
```
