# Job Listings

> A clean list of job listings with title, location, and a quick apply link. Helps candidates skim available roles and pick one to pursue today.

A shadcn/ui block from the [@shadcn-ui-blocks](https://www.shadcn-ui-blocks.com) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/shadcn-ui-blocks/marketing-careers-job-listings).

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

## Install

```bash
npx shadcn@latest add https://www.shadcn-ui-blocks.com/r/marketing-careers-job-listings.json
```

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

## Dependencies

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

## Files

### `components/blocks/marketing/careers/job-listings.tsx`

```tsx
import * as React from 'react';
import { Badge } from '@/components/ui/badge';
import { Button } from '@/components/ui/button';
import {
  Card,
  CardContent,
  CardFooter,
  CardHeader,
  CardTitle,
} from '@/components/ui/card';
import { Input } from '@/components/ui/input';
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs';
import { cn } from '@/lib/utils';
import {
  ChevronRightIcon,
  Search,
  MapPinIcon,
  BriefcaseIcon,
  ClockIcon,
} from 'lucide-react';

interface JobPosition {
  id: string;
  title: string;
  department: string;
  location: string;
  locationType: 'remote' | 'hybrid' | 'onsite';
  employmentType: 'full-time' | 'part-time' | 'contract';
  postedDate: string;
  description: string;
  requirements: string[];
  salaryRange?: string;
  featured?: boolean;
}

export type LocationType = 'remote' | 'hybrid' | 'onsite';
export type EmploymentType =
  | 'full-time'
  | 'part-time'
  | 'contract'
  | 'internship';

export default function JobListings() {
  const [searchQuery, setSearchQuery] = React.useState('');
  const [activeLocation, setActiveLocation] = React.useState<string | null>(
    null
  );
  const [activeDepartment, setActiveDepartment] = React.useState<string | null>(
    null
  );

  // Sample job data
  const jobs: JobPosition[] = [
    {
      id: '1',
      title: 'Senior Frontend Developer',
      department: 'Engineering',
      location: 'San Francisco, CA',
      locationType: 'hybrid',
      employmentType: 'full-time',
      postedDate: '2023-06-15',
      description:
        "We're looking for a Senior Frontend Developer to join our team and help build our next-generation web applications. You'll be responsible for architecting and implementing UI components, optimizing performance, and mentoring junior developers.",
      requirements: [
        '5+ years of experience with modern JavaScript frameworks (React, Vue, Angular)',
        'Strong knowledge of TypeScript, HTML and CSS',
        'Experience with state management solutions',
        'Understanding of web accessibility standards',
        'Excellent communication skills',
      ],
      salaryRange: '$120,000 - $150,000',
      featured: true,
    },
    {
      id: '2',
      title: 'Product Designer',
      department: 'Design',
      location: 'New York, NY',
      locationType: 'onsite',
      employmentType: 'full-time',
      postedDate: '2023-06-20',
      description:
        "We are seeking a creative Product Designer to join our growing design team. You'll collaborate with product managers, engineers, and other designers to create intuitive and visually appealing user experiences for our products.",
      requirements: [
        '3+ years of experience in product design',
        'Proficiency in design tools like Figma and Adobe Creative Suite',
        'Experience with user research and usability testing',
        'Strong portfolio showcasing your design process',
        'Excellent problem-solving skills',
      ],
      salaryRange: '$90,000 - $120,000',
      featured: true,
    },
    {
      id: '3',
      title: 'DevOps Engineer',
      department: 'Engineering',
      location: 'Remote',
      locationType: 'remote',
      employmentType: 'full-time',
      postedDate: '2023-06-25',
      description:
        "We're looking for a DevOps Engineer to help us build and maintain our cloud infrastructure. You'll work closely with our development team to implement CI/CD pipelines, optimize system performance, and ensure high availability of our services.",
      requirements: [
        '4+ years of experience in DevOps or system administration',
        'Experience with AWS, GCP, or Azure',
        'Knowledge of container orchestration (Kubernetes, Docker)',
        'Experience with infrastructure as code (Terraform, CloudFormation)',
        'Strong scripting skills (Bash, Python)',
      ],
      salaryRange: '$110,000 - $140,000',
    },
    {
      id: '4',
      title: 'Content Marketing Manager',
      department: 'Marketing',
      location: 'Chicago, IL',
      locationType: 'hybrid',
      employmentType: 'full-time',
      postedDate: '2023-07-01',
      description:
        "We're seeking a Content Marketing Manager to develop and execute our content strategy. You'll create compelling content for various channels, manage our editorial calendar, and analyze content performance to drive engagement and conversions.",
      requirements: [
        '3+ years of experience in content marketing',
        'Excellent writing and editing skills',
        'Experience with SEO and content analytics',
        'Strong project management abilities',
        'Knowledge of content management systems',
      ],
      salaryRange: '$80,000 - $100,000',
    },
    {
      id: '5',
      title: 'Data Scientist',
      department: 'Data',
      location: 'Remote',
      locationType: 'remote',
      employmentType: 'full-time',
      postedDate: '2023-07-05',
      description:
        "We're looking for a Data Scientist to help us extract insights from our vast amounts of data. You'll develop machine learning models, conduct statistical analyses, and work with product teams to implement data-driven features.",
      requirements: [
        'MSc or PhD in Computer Science, Statistics, or related field',
        '3+ years of experience in data science or machine learning',
        'Proficiency in Python and data science libraries (NumPy, Pandas, Scikit-learn)',
        'Experience with SQL and database systems',
        'Strong communication skills to explain complex concepts to non-technical stakeholders',
      ],
      salaryRange: '$130,000 - $160,000',
      featured: true,
    },
    {
      id: '6',
      title: 'Customer Success Manager',
      department: 'Customer Success',
      location: 'Austin, TX',
      locationType: 'onsite',
      employmentType: 'full-time',
      postedDate: '2023-07-10',
      description:
        "We're looking for a Customer Success Manager to ensure our customers achieve their business goals using our product. You'll manage customer relationships, drive product adoption, and work cross-functionally to address customer needs.",
      requirements: [
        '3+ years of experience in customer success or account management',
        'Strong interpersonal and communication skills',
        'Problem-solving abilities and attention to detail',
        'Experience with CRM software',
        'Ability to prioritize and manage multiple customers',
      ],
      salaryRange: '$75,000 - $95,000',
    },
    {
      id: '7',
      title: 'Backend Developer',
      department: 'Engineering',
      location: 'Remote',
      locationType: 'remote',
      employmentType: 'full-time',
      postedDate: '2023-07-15',
      description:
        "We're seeking a skilled Backend Developer to help build and scale our API services. You'll design and implement efficient, secure, and reliable backend systems that power our applications.",
      requirements: [
        '4+ years of experience in backend development',
        'Proficiency in at least one backend language (Node.js, Python, Go, etc.)',
        'Experience with relational and NoSQL databases',
        'Knowledge of API design and development',
        'Understanding of distributed systems and microservices architecture',
      ],
      salaryRange: '$110,000 - $140,000',
    },
    {
      id: '8',
      title: 'QA Engineer',
      department: 'Engineering',
      location: 'Seattle, WA',
      locationType: 'hybrid',
      employmentType: 'full-time',
      postedDate: '2023-07-20',
      description:
        "We're looking for a QA Engineer to ensure the quality of our products. You'll design and execute test plans, automate testing processes, and collaborate with developers to identify and resolve issues.",
      requirements: [
        '3+ years of experience in software testing',
        'Experience with test automation frameworks',
        'Knowledge of testing methodologies',
        'Attention to detail and analytical thinking',
        'Good understanding of the software development lifecycle',
      ],
      salaryRange: '$90,000 - $110,000',
    },
  ];

  // Extract unique departments and locations for filters
  const departments = Array.from(new Set(jobs.map((job) => job.department)));
  const locations = Array.from(new Set(jobs.map((job) => job.location)));

  const locationTypeIcons: Record<string, React.ReactNode> = {
    remote: (
      <Badge
        variant="outline"
        className="rounded-full border-green-200 bg-green-100 text-green-800 dark:bg-green-900/20 dark:text-green-400"
      >
        Remote
      </Badge>
    ),
    hybrid: (
      <Badge
        variant="outline"
        className="rounded-full border-blue-200 bg-blue-100 text-blue-800 dark:bg-blue-900/20 dark:text-blue-400"
      >
        Hybrid
      </Badge>
    ),
    onsite: (
      <Badge
        variant="outline"
        className="rounded-full border-orange-200 bg-orange-100 text-orange-800 dark:bg-orange-900/20 dark:text-orange-400"
      >
        On-site
      </Badge>
    ),
  };

  // Calculate days ago for a job posting
  const calculateDaysAgo = (dateString: string) => {
    const postedDate = new Date(dateString);
    const currentDate = new Date();
    const differenceInTime = currentDate.getTime() - postedDate.getTime();
    const differenceInDays = Math.floor(differenceInTime / (1000 * 3600 * 24));

    if (differenceInDays === 0) {
      return 'Today';
    } else if (differenceInDays === 1) {
      return 'Yesterday';
    } else {
      return `${differenceInDays} days ago`;
    }
  };

  // Filter jobs based on search query and selected filters
  const filteredJobs = React.useMemo(() => {
    return jobs.filter((job) => {
      // Search filter
      const matchesSearch =
        searchQuery === '' ||
        job.title.toLowerCase().includes(searchQuery.toLowerCase()) ||
        job.description.toLowerCase().includes(searchQuery.toLowerCase()) ||
        job.department.toLowerCase().includes(searchQuery.toLowerCase());

      // Department filter
      const matchesDepartment =
        activeDepartment === null || job.department === activeDepartment;

      // Location filter
      const matchesLocation =
        activeLocation === null || job.location === activeLocation;

      return matchesSearch && matchesDepartment && matchesLocation;
    });
  }, [jobs, searchQuery, activeDepartment, activeLocation]);

  return (
    <div className="container mx-auto px-4 py-6 md:py-8">
      <div className="mb-6 text-center md:mb-10">
        <h2 className="mb-2 text-2xl font-bold tracking-tight md:text-3xl">
          Join Our Team
        </h2>
        <p className="text-muted-foreground mx-auto max-w-2xl text-sm md:text-base">
          We&apos;re looking for passionate people to join us on our mission.
          Check out our open positions and find your dream job.
        </p>
      </div>

      <div className="grid gap-6 lg:grid-cols-[280px_1fr]">
        {/* Filters sidebar */}
        <div className="space-y-4 md:space-y-6">
          <div>
            <div className="relative">
              <Search className="text-muted-foreground absolute top-1/2 left-3 h-4 w-4 -translate-y-1/2" />
              <Input
                placeholder="Search jobs..."
                className="pl-10"
                value={searchQuery}
                onChange={(e) => setSearchQuery(e.target.value)}
              />
            </div>
          </div>

          <div className="grid grid-cols-2 gap-4 lg:grid-cols-1 lg:gap-0">
            <div>
              <h3 className="mb-2 text-sm font-semibold">Departments</h3>
              <ul className="space-y-1">
                <li>
                  <Button
                    variant="ghost"
                    className={cn(
                      'w-full justify-start px-2 text-sm font-normal',
                      activeDepartment === null ? 'bg-muted' : ''
                    )}
                    onClick={() => setActiveDepartment(null)}
                  >
                    All Departments
                  </Button>
                </li>
                {departments.map((department) => (
                  <li key={department}>
                    <Button
                      variant="ghost"
                      className={cn(
                        'w-full justify-start px-2 text-sm font-normal',
                        activeDepartment === department ? 'bg-muted' : ''
                      )}
                      onClick={() => setActiveDepartment(department)}
                    >
                      {department}
                    </Button>
                  </li>
                ))}
              </ul>
            </div>

            <div className="lg:mt-4">
              <h3 className="mb-2 text-sm font-semibold">Locations</h3>
              <ul className="space-y-1">
                <li>
                  <Button
                    variant="ghost"
                    className={cn(
                      'w-full justify-start px-2 text-sm font-normal',
                      activeLocation === null ? 'bg-muted' : ''
                    )}
                    onClick={() => setActiveLocation(null)}
                  >
                    All Locations
                  </Button>
                </li>
                {locations.map((location) => (
                  <li key={location}>
                    <Button
                      variant="ghost"
                      className={cn(
                        'w-full justify-start px-2 text-sm font-normal',
                        activeLocation === location ? 'bg-muted' : ''
                      )}
                      onClick={() => setActiveLocation(location)}
                    >
                      {location}
                    </Button>
                  </li>
                ))}
              </ul>
            </div>
          </div>
        </div>

        {/* Jobs list */}
        <div>
          <Tabs defaultValue="all" className="w-full">
            <div className="mb-4 flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between">
              <TabsList className="w-full sm:w-auto">
                <TabsTrigger value="all" className="flex-1 sm:flex-initial">
                  All Jobs
                </TabsTrigger>
                <TabsTrigger
                  value="featured"
                  className="flex-1 sm:flex-initial"
                >
                  Featured
                </TabsTrigger>
                <TabsTrigger value="remote" className="flex-1 sm:flex-initial">
                  Remote
                </TabsTrigger>
              </TabsList>
              <p className="text-muted-foreground text-sm">
                {filteredJobs.length} jobs found
              </p>
            </div>

            <TabsContent value="all" className="space-y-4">
              {filteredJobs.length === 0 ? (
                <div className="py-10 text-center">
                  <p className="text-muted-foreground">
                    No jobs found matching your criteria.
                  </p>
                  <Button
                    variant="outline"
                    className="mt-4"
                    onClick={() => {
                      setSearchQuery('');
                      setActiveDepartment(null);
                      setActiveLocation(null);
                    }}
                  >
                    Reset Filters
                  </Button>
                </div>
              ) : (
                filteredJobs.map((job) => <JobCard key={job.id} job={job} />)
              )}
            </TabsContent>

            <TabsContent value="featured" className="space-y-4">
              {filteredJobs.filter((j) => j.featured).length === 0 ? (
                <div className="py-10 text-center">
                  <p className="text-muted-foreground">
                    No featured jobs found matching your criteria.
                  </p>
                  <Button
                    variant="outline"
                    className="mt-4"
                    onClick={() => {
                      setSearchQuery('');
                      setActiveDepartment(null);
                      setActiveLocation(null);
                    }}
                  >
                    Reset Filters
                  </Button>
                </div>
              ) : (
                filteredJobs
                  .filter((job) => job.featured)
                  .map((job) => <JobCard key={job.id} job={job} />)
              )}
            </TabsContent>

            <TabsContent value="remote" className="space-y-4">
              {filteredJobs.filter((j) => j.locationType === 'remote')
                .length === 0 ? (
                <div className="py-10 text-center">
                  <p className="text-muted-foreground">
                    No remote jobs found matching your criteria.
                  </p>
                  <Button
                    variant="outline"
                    className="mt-4"
                    onClick={() => {
                      setSearchQuery('');
                      setActiveDepartment(null);
                      setActiveLocation(null);
                    }}
                  >
                    Reset Filters
                  </Button>
                </div>
              ) : (
                filteredJobs
                  .filter((job) => job.locationType === 'remote')
                  .map((job) => <JobCard key={job.id} job={job} />)
              )}
            </TabsContent>
          </Tabs>
        </div>
      </div>
    </div>
  );

  function JobCard({ job }: { job: JobPosition }) {
    const [expanded, setExpanded] = React.useState(false);

    return (
      <Card
        className={cn(
          'overflow-hidden transition-all',
          job.featured ? 'border-primary/20' : ''
        )}
      >
        <CardHeader className="">
          <div className="flex flex-col gap-2 sm:flex-row sm:flex-wrap sm:justify-between">
            <div>
              <CardTitle className="text-lg sm:text-xl">
                {job.title}
                {job.featured && (
                  <Badge className="ml-2 font-medium">Featured</Badge>
                )}
              </CardTitle>
              <div className="text-muted-foreground mt-1 flex flex-wrap items-center gap-2 text-xs sm:text-sm">
                <span className="flex items-center">
                  <BriefcaseIcon className="mr-1 h-3 w-3 sm:h-3.5 sm:w-3.5" />
                  {job.department}
                </span>
                <span className="flex items-center">
                  <MapPinIcon className="mr-1 h-3 w-3 sm:h-3.5 sm:w-3.5" />
                  {job.location}
                </span>
                <span className="flex items-center">
                  <ClockIcon className="mr-1 h-3 w-3 sm:h-3.5 sm:w-3.5" />
                  {calculateDaysAgo(job.postedDate)}
                </span>
              </div>
            </div>
            <div className="mt-2 flex items-center gap-2 sm:mt-0">
              {locationTypeIcons[job.locationType]}
              <Badge
                variant="outline"
                className="text-xs font-normal sm:text-sm"
              >
                {job.employmentType === 'full-time'
                  ? 'Full-time'
                  : job.employmentType === 'part-time'
                    ? 'Part-time'
                    : 'Contract'}
              </Badge>
            </div>
          </div>
        </CardHeader>
        <CardContent className="">
          <div
            className={cn(
              'relative text-xs sm:text-sm',
              !expanded && 'max-h-16 overflow-hidden sm:max-h-24'
            )}
          >
            <p>{job.description}</p>
            {!expanded && (
              <div className="from-card absolute right-0 bottom-0 left-0 h-12 bg-gradient-to-t to-transparent sm:h-16"></div>
            )}
          </div>
          {expanded && (
            <div className="mt-4">
              <h4 className="mb-2 text-sm font-medium">Requirements</h4>
              <ul className="list-disc space-y-1 pl-5 text-xs sm:text-sm">
                {job.requirements.map((req, index) => (
                  <li key={index}>{req}</li>
                ))}
              </ul>
              {job.salaryRange && (
                <p className="mt-4 text-sm font-medium">
                  Salary Range:{' '}
                  <span className="text-muted-foreground">
                    {job.salaryRange}
                  </span>
                </p>
              )}
            </div>
          )}
          <Button
            variant="ghost"
            size="sm"
            className="text-muted-foreground mt-2 h-auto p-0 text-xs sm:text-sm"
            onClick={() => setExpanded(!expanded)}
          >
            {expanded ? 'Show less' : 'Show more'}
          </Button>
        </CardContent>
        <CardFooter className="flex flex-col gap-2 sm:flex-row sm:justify-between">
          <Button variant="outline" size="sm" className="w-full sm:w-auto">
            Apply Now
            <ChevronRightIcon className="ml-1 h-4 w-4" />
          </Button>
          <Button variant="ghost" size="sm" className="w-full sm:w-auto">
            Share
          </Button>
        </CardFooter>
      </Card>
    );
  }
}
```

### `components/ui/badge.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 badgeVariants = cva(
  "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!",
  {
    variants: {
      variant: {
        default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80",
        secondary:
          "bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",
        destructive:
          "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",
        outline:
          "border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",
        ghost:
          "hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",
        link: "text-primary underline-offset-4 hover:underline",
      },
    },
    defaultVariants: {
      variant: "default",
    },
  }
)

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

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

export { Badge, badgeVariants }
```

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

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

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

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

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

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

export { Button, buttonVariants }
```

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

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

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

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

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

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

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

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

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

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

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

### `components/ui/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/tabs.tsx`

```tsx
"use client"

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

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

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

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

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

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

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

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