Relic UI

Documentation

Getting started

Relic UI is a collection of 58 animated React components. You don't install a package: you add the components you need, and the code is yours.

React 19Tailwind CSS v4shadcn/uiMotionTypeScript

Installation

  1. 1

    Set up shadcn/ui

    Relic UI components install with the shadcn CLI. Skip this if your project already uses shadcn/ui.

    npx shadcn@latest init
  2. 2

    Add a component

    Copy the command from any component's page. Install from the website or straight from GitHub.

    npx shadcn@latest add https://relic-ui.vercel.app/r/stretch-switch.json
    # or
    npx shadcn@latest add relicui/relic-ui/stretch-switch
  3. 3

    Make it yours

    The source lands in components/ui. Import it, use it, and change anything you like.

    import { StretchSwitch } from "@/components/ui/stretch-switch"
    
    <StretchSwitch defaultChecked />

Browse by category

14 categories, 58 components.

See them live

Every component is

Accessible

Keyboard support, screen reader labels and reduced motion, in every component.

Themeable

Built on shadcn/ui color tokens, so it follows your colors in light and dark mode.

Customizable

Sizes, variants and timings as props, with a live playground on every page.

Open source under the MIT License

Free for personal and commercial projects. A credit link is appreciated, never required.

Read the license