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.
Installation
- 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
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
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.
Hold to Confirm Button · Shimmer Button
OpenSmooth Caret Input · Seeker Search · Caret Tag Input · Dial Number Input · Vault Code
OpenStretch Switch · Rocker Switch · Ink Checkbox
OpenCaret Loader · Perforation Progress · Etch Skeleton
OpenStretch Tabs · Fold Accordion
OpenPerforated Card
OpenTicket Toast · Crumple Trash
OpenRewrite Text · Caret Field · Elastic Divider
OpenSuggestion Diff · Thought Fold · Deliberate Text · Context Gauge · Agent Steps · Confidence Text · Citation Peek · Prompt Deck · Temperature Dial · Response Versions
OpenRune Decode Text · Wax Seal Button · Scroll Unroll · Hourglass Loader · Astrolabe Picker · Chisel Input
OpenSpring Slider · Newton's Cradle Loader · Liquid Progress · Pull Chain Toggle · Jelly Card · Orbit Menu
OpenPaper Drop · Fold Tree
OpenWeek Pulse · Hotspot Map · Visitor Count · Visitor Map · Scroll Depth · Cohort Tide · Correlation Matrix · Heat Mosaic
OpenProfile Deck · Follower Ticker · Follow Button · Reach Rings · Milestone Road
OpenEvery 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.