Getting Started

fern-ui is a collection of minimal, accessible components built with React, Tailwind CSS, and Radix UI primitives. Install components directly via the shadcn CLI.

Installation

Add components to your project using the shadcn CLI:

bash
# Add a component from the registry
npx shadcn@latest add ChinmayNoob/fern-ui/animated-image
npx shadcn@latest add ChinmayNoob/fern-ui/tilt-image
npx shadcn@latest add ChinmayNoob/fern-ui/valorant-button

# Or list all available components
npx shadcn@latest list ChinmayNoob/fern-ui

Quick Install

Or add the registry to your project for namespace-based installs:

npx shadcn@latest registry add @fern-ui=https://github.com/ChinmayNoob/fern-ui

Utility Function

Add the cn utility for merging Tailwind classes:

lib/utils.tstypescript
// lib/utils.ts
import { clsx, type ClassValue } from "clsx"
import { twMerge } from "tailwind-merge"

export function cn(...inputs: ClassValue[]) {
  return twMerge(clsx(inputs))
}

Components

Browse available components below