### Install Dependencies (bun)
Source: https://ui.unlumen.com/docs/ui/unlumen/switch
Install the necessary dependencies for the Switch component using bun.
```bash
bun add motion @radix-ui/react-switch
```
--------------------------------
### Add Pro Component with Authentication
Source: https://ui.unlumen.com/docs/installation
Install Pro components using the standard add command after configuring authentication. This example adds the floating navbar component.
```bash
pnpm dlx shadcn@latest add @unlumen-ui/floating-navbar
```
```bash
npx shadcn@latest add @unlumen-ui/floating-navbar
```
```bash
npx shadcn@latest add @unlumen-ui/floating-navbar
```
```bash
bunx --bun shadcn@latest add @unlumen-ui/floating-navbar
```
--------------------------------
### Installation
Source: https://ui.unlumen.com/docs/ui/unlumen/kbd
Install the Kbd and Shortcut components using npm, pnpm, yarn, or bun.
```APIDOC
CLI
```
npx shadcn@latest add @unlumen-ui/kbd
```
pnpm
```
pnpm dlx shadcn@latest add @unlumen-ui/kbd
```
yarn
```
npx shadcn@latest add @unlumen-ui/kbd
```
bun
```
bun x --bun shadcn@latest add @unlumen-ui/kbd
```
Manual
Copy and paste the following code into your project:
components/unlumen-ui/kbd.tsx
```
--------------------------------
### Install Dependencies (npm)
Source: https://ui.unlumen.com/docs/ui/unlumen/switch
Install the necessary dependencies for the Switch component using npm.
```bash
npm install motion @radix-ui/react-switch
```
--------------------------------
### Install Dependencies with bun
Source: https://ui.unlumen.com/docs/ui/unlumen/theme-switch
Installs the necessary next-themes and motion libraries using bun.
```bash
bun add next-themes motion
```
--------------------------------
### FloatingTooltip Usage Example
Source: https://ui.unlumen.com/docs/ui/unlumen/floating-tooltip
Import and use the FloatingTooltip Provider and Trigger components to display a tooltip on hover. Ensure the import path matches your project setup.
```javascript
import { FloatingTooltip } from "@/components/unlumen-ui/floating-tooltip";
;
```
--------------------------------
### Install Dependencies (yarn)
Source: https://ui.unlumen.com/docs/ui/unlumen/switch
Install the necessary dependencies for the Switch component using yarn.
```bash
yarn add motion @radix-ui/react-switch
```
--------------------------------
### Install Dependencies with npm
Source: https://ui.unlumen.com/docs/ui/unlumen/theme-switch
Installs the necessary next-themes and motion libraries using npm.
```bash
npm install next-themes motion
```
--------------------------------
### Install Highlight Component using bun
Source: https://ui.unlumen.com/docs/ui/unlumen/highlight
Installs the Highlight component using the shadcn-ui CLI with bun.
```bash
bun x --bun shadcn@latest add @unlumen-ui/highlight
```
--------------------------------
### Install Dependencies with bun
Source: https://ui.unlumen.com/docs/ui/unlumen/slider
Install the necessary dependencies for the slider component using bun.
```bash
bun add motion @radix-ui/react-slider
```
--------------------------------
### Install Dependencies (pnpm)
Source: https://ui.unlumen.com/docs/ui/unlumen/switch
Install the necessary dependencies for the Switch component using pnpm.
```bash
pnpm add motion @radix-ui/react-switch
```
--------------------------------
### Install Core Dependencies with bun
Source: https://ui.unlumen.com/docs/ui/buttons/copy
Installs the 'motion', 'lucide-react', and 'class-variance-authority' packages using bun.
```bash
bun add motion lucide-react class-variance-authority
```
--------------------------------
### Install Slider with bun
Source: https://ui.unlumen.com/docs/ui/unlumen/slider
Use this command to install the slider component using bun.
```bash
bun x --bun shadcn@latest add @unlumen-ui/slider
```
--------------------------------
### Install Highlight Component using npx
Source: https://ui.unlumen.com/docs/ui/unlumen/highlight
Installs the Highlight component using the shadcn-ui CLI with npx.
```bash
npx shadcn@latest add @unlumen-ui/highlight
```
--------------------------------
### Install Dependencies (bun)
Source: https://ui.unlumen.com/docs/ui/effects/math-graph
Install the necessary dependencies for the Math Graph component using bun.
```bash
bun add motion react-use-measure
```
--------------------------------
### Install Dependencies with bun
Source: https://ui.unlumen.com/docs/ui/effects/count-up
Install the required dependencies for the Count Up component using bun.
```bash
bun add motion react-use-measure
```
--------------------------------
### Install Dependencies with pnpm
Source: https://ui.unlumen.com/docs/ui/unlumen/theme-switch
Installs the necessary next-themes and motion libraries using pnpm.
```bash
pnpm add next-themes motion
```
--------------------------------
### Install Highlight Component using pnpm
Source: https://ui.unlumen.com/docs/ui/unlumen/highlight
Installs the Highlight component using the shadcn-ui CLI with pnpm.
```bash
pnpm dlx shadcn@latest add @unlumen-ui/highlight
```
--------------------------------
### Install Dependencies with yarn
Source: https://ui.unlumen.com/docs/ui/unlumen/theme-switch
Installs the necessary next-themes and motion libraries using yarn.
```bash
yarn add next-themes motion
```
--------------------------------
### Install Core Dependencies with npm
Source: https://ui.unlumen.com/docs/ui/buttons/copy
Installs the 'motion', 'lucide-react', and 'class-variance-authority' packages using npm.
```bash
npm install motion lucide-react class-variance-authority
```
--------------------------------
### Install Dependencies with bun
Source: https://ui.unlumen.com/docs/ui/buttons/refresh
Installs necessary dependencies for the Refresh Button component using bun.
```bash
bun add class-variance-authority motion lucide-react
```
--------------------------------
### Install Dependencies with bun
Source: https://ui.unlumen.com/docs/ui/unlumen/magnetic-button
Install the necessary dependencies for the Magnetic Button component using bun.
```bash
bun add motion class-variance-authority
```
--------------------------------
### Install Dependencies (npm)
Source: https://ui.unlumen.com/docs/ui/effects/math-graph
Install the necessary dependencies for the Math Graph component using npm.
```bash
npm install motion react-use-measure
```
--------------------------------
### Install Copy Button with bun
Source: https://ui.unlumen.com/docs/ui/buttons/copy
Installs the Copy Button component using bun and shadcn-ui.
```bash
bun x --bun shadcn@latest add @unlumen-ui/copy
```
--------------------------------
### Install Dependencies via bun
Source: https://ui.unlumen.com/docs/ui/unlumen/command-menu
Install necessary dependencies for the Command Menu component using bun.
```bash
bun add next next-themes lucide-react
```
--------------------------------
### Install Dependencies with npm
Source: https://ui.unlumen.com/docs/ui/effects/count-up
Install the required dependencies for the Count Up component using npm.
```bash
npm install motion react-use-measure
```
--------------------------------
### Install Core Dependencies with pnpm
Source: https://ui.unlumen.com/docs/ui/buttons/copy
Installs the 'motion', 'lucide-react', and 'class-variance-authority' packages using pnpm.
```bash
pnpm add motion lucide-react class-variance-authority
```
--------------------------------
### Install Dependencies (pnpm)
Source: https://ui.unlumen.com/docs/ui/effects/math-graph
Install the necessary dependencies for the Math Graph component using pnpm.
```bash
pnpm add motion react-use-measure
```
--------------------------------
### Install Button component using bun
Source: https://ui.unlumen.com/docs/ui/buttons/glow
Installs the Button component using the bun package manager.
```bash
bun x --bun shadcn@latest add button
```
--------------------------------
### Tilt Component Installation
Source: https://ui.unlumen.com/docs/ui/unlumen/tilt
Install the Tilt component and its dependencies using npm, pnpm, yarn, or bun.
```APIDOC
## Installation
### CLI
```bash
npx shadcn@latest add @unlumen-ui/tilt
```
```bash
pnpm dlx shadcn@latest add @unlumen-ui/tilt
```
```bash
npx shadcn@latest add @unlumen-ui/tilt
```
```bash
bun x --bun shadcn@latest add @unlumen-ui/tilt
```
### Dependencies
Install the following dependencies:
**npm**
```bash
npm install motion
```
**pnpm**
```bash
pnpm add motion
```
**yarn**
```bash
yarn add motion
```
**bun**
```bash
bun add motion
```
### Manual Installation
Copy and paste the following code into your project:
`components/unlumen-ui/tilt.tsx`
```
--------------------------------
### OrbitingSkills Usage Example
Source: https://ui.unlumen.com/docs/ui/unlumen/orbiting-skills
Import and use the OrbitingSkills component with a list of skills and a central element. Ensure the import path matches your project setup.
```jsx
import {
OrbitingSkills,
type OrbitSkillItem,
} from "@/components/unlumen-ui/orbiting-skills";
const SKILLS: OrbitSkillItem[] = [
{ label: "React", icon: ⚛️ },
{ label: "TypeScript", icon: 🔷 },
{ label: "Tailwind", icon: 🌊 },
];
;
```
--------------------------------
### Basic Usage of Kbd and Shortcut
Source: https://ui.unlumen.com/docs/ui/unlumen/kbd
Examples of using the Kbd component for single keys and the Shortcut component for key combinations. Demonstrates basic instantiation.
```tsx
// Single key
⌘Enter
// Shortcut combo
```
--------------------------------
### ScrambleText Manual Control Example
Source: https://ui.unlumen.com/docs/ui/unlumen/scramble-text
Control the ScrambleText animation manually using refs. This allows starting or resetting the animation via button clicks.
```javascript
import { useRef } from "react";
import {
ScrambleText,
ScrambleTextHandle,
} from "@/components/unlumen-ui/scramble-text";
export function Example() {
const ref = useRef(null);
return (
<>
>
);
}
```
--------------------------------
### Initialize shadcn/ui Project
Source: https://ui.unlumen.com/docs/installation
Run this command to set up a new project with shadcn/ui or configure an existing one. This is the first step for integrating Unlumen UI.
```bash
pnpm dlx shadcn@latest init
```
```bash
npx shadcn@latest init
```
```bash
yarn shadcn@latest init
```
```bash
bunx --bun shadcn@latest init
```
--------------------------------
### Install Pro Component
Source: https://ui.unlumen.com/docs/mcp
Use this command to install a Pro component after configuring your license key and `components.json`.
```bash
npx shadcn@latest add @unlumen-ui/dia-text-reveal
```
--------------------------------
### Install Clipped Circle with bun
Source: https://ui.unlumen.com/docs/ui/effects/clipped-circle
Installs the Clipped Circle component using bun. Ensure you have Node.js and bun installed.
```bash
bun x --bun shadcn@latest add @unlumen-ui/clipped-circle
```
--------------------------------
### Install Clipped Circle with pnpm
Source: https://ui.unlumen.com/docs/ui/effects/clipped-circle
Installs the Clipped Circle component using pnpm. Ensure you have Node.js and pnpm installed.
```bash
pnpm dlx shadcn@latest add @unlumen-ui/clipped-circle
```
--------------------------------
### Install Tooltip Preview with bun
Source: https://ui.unlumen.com/docs/ui/unlumen/tooltip-preview
Use this command to add the Tooltip Preview component to your project using bun.
```bash
bun x --bun shadcn@latest add @unlumen-ui/tooltip-preview
```
--------------------------------
### Install Clipped Circle with npm
Source: https://ui.unlumen.com/docs/ui/effects/clipped-circle
Installs the Clipped Circle component using npm. Ensure you have Node.js and npm installed.
```bash
npx shadcn@latest add @unlumen-ui/clipped-circle
```
--------------------------------
### Install Dependencies with yarn
Source: https://ui.unlumen.com/docs/ui/unlumen/slider
Install the necessary dependencies for the slider component using yarn.
```bash
yarn add motion @radix-ui/react-slider
```
--------------------------------
### Setup ThemeProvider
Source: https://ui.unlumen.com/docs/ui/unlumen/theme-switch
Wrap your application with `ThemeProvider` from `next-themes` to enable theme management. Ensure `suppressHydrationWarning` is set on the `` tag.
```typescript
import {
ThemeProvider
} from "next-themes";
export default function RootLayout({ children }) {
return (
{children}
);
}
```
--------------------------------
### Install Dependencies with pnpm
Source: https://ui.unlumen.com/docs/ui/unlumen/slider
Install the necessary dependencies for the slider component using pnpm.
```bash
pnpm add motion @radix-ui/react-slider
```
--------------------------------
### Install Dependencies with npm
Source: https://ui.unlumen.com/docs/ui/unlumen/slider
Install the necessary dependencies for the slider component using npm.
```bash
npm install motion @radix-ui/react-slider
```
--------------------------------
### Basic Usage
Source: https://ui.unlumen.com/docs/ui/backgrounds/pixel
A simple example demonstrating how to integrate the PixelBackground component into your application.
```APIDOC
## Usage
```jsx
```
```
--------------------------------
### Install Slider with pnpm
Source: https://ui.unlumen.com/docs/ui/unlumen/slider
Use this command to install the slider component using pnpm.
```bash
pnpm dlx shadcn@latest add @unlumen-ui/slider
```
--------------------------------
### Install Tooltip Preview with npm
Source: https://ui.unlumen.com/docs/ui/unlumen/tooltip-preview
Use this command to add the Tooltip Preview component to your project using npm.
```bash
npx shadcn@latest add @unlumen-ui/tooltip-preview
```
--------------------------------
### Install Slider with npx
Source: https://ui.unlumen.com/docs/ui/unlumen/slider
Use this command to install the slider component using npx.
```bash
npx shadcn@latest add @unlumen-ui/slider
```
--------------------------------
### Kbd and Shortcut Demo
Source: https://ui.unlumen.com/docs/ui/unlumen/kbd
Demonstrates the usage of Kbd and Shortcut components for displaying single keys and common shortcuts. Supports different sizes.
```tsx
"use client";
import { Kbd, Shortcut } from "@/components/unlumen-ui/kbd";
export const KbdDemo = ({ size = "md" }: { size?: "sm" | "md" | "lg" }) => {
return (
);
};
```
--------------------------------
### Install Theme Switch with bun
Source: https://ui.unlumen.com/docs/ui/unlumen/theme-switch
Installs the Theme Switch component using the bun x shadcn-ui command.
```bash
bun x --bun shadcn@latest add @unlumen-ui/theme-switch
```
--------------------------------
### Install Switch Component (bun)
Source: https://ui.unlumen.com/docs/ui/unlumen/switch
Use this command to add the Switch component to your project using bun.
```bash
bun x --bun shadcn@latest add @unlumen-ui/switch
```
--------------------------------
### Install Tilt Component
Source: https://ui.unlumen.com/docs/ui/unlumen/tilt
Add the Tilt component to your project using npx, pnpm, bun, or yarn.
```bash
npx shadcn@latest add @unlumen-ui/tilt
```
```bash
pnpm dlx shadcn@latest add @unlumen-ui/tilt
```
```bash
bun x --bun shadcn@latest add @unlumen-ui/tilt
```
--------------------------------
### Install Dependencies with yarn
Source: https://ui.unlumen.com/docs/ui/effects/count-up
Install the required dependencies for the Count Up component using yarn.
```bash
yarn add motion react-use-measure
```
--------------------------------
### Grid Example
Source: https://ui.unlumen.com/docs/ui/backgrounds/pixel
Demonstrates using PixelBackground with different patterns and color schemes in a grid layout.
```APIDOC
## Examples
### Grid
```jsx
import { PixelBackground } from "@/components/unlumen-ui/pixel";
export const PixelBackgroundGridDemo = () => {
return (
Pixel Cursor
Animation starts from where the mouse enters.
Pixel Edges
Pixels appear from all edges inward.
Pixel Random
A Random pattern that combines distance and angle
);
};
```
```
--------------------------------
### Install Dependencies with pnpm
Source: https://ui.unlumen.com/docs/ui/effects/count-up
Install the required dependencies for the Count Up component using pnpm.
```bash
pnpm add motion react-use-measure
```
--------------------------------
### Import Kbd and Shortcut Components
Source: https://ui.unlumen.com/docs/ui/unlumen/kbd
How to import the Kbd and Shortcut components into your project. Update the import path to match your project structure.
```tsx
import { Kbd, Shortcut } from "@/components/unlumen-ui/kbd";
```
--------------------------------
### Install Registry Dependencies (bun)
Source: https://ui.unlumen.com/docs/ui/unlumen/tilt-card
Add specific registry dependencies for the Tilt Card and Clipped Circle components using bun.
```bash
bun x --bun shadcn@latest add "https://ui.unlumen.com/r/tilt.json" "https://ui.unlumen.com/r/clipped-circle.json"
```
--------------------------------
### Install Dependencies (yarn)
Source: https://ui.unlumen.com/docs/ui/effects/math-graph
Install the necessary dependencies for the Math Graph component using yarn.
```bash
yarn add motion react-use-measure
```
--------------------------------
### Install Theme Switch with npm
Source: https://ui.unlumen.com/docs/ui/unlumen/theme-switch
Installs the Theme Switch component using the npx shadcn-ui command with npm.
```bash
npx shadcn@latest add @unlumen-ui/theme-switch
```
--------------------------------
### Install class-variance-authority and motion using bun
Source: https://ui.unlumen.com/docs/ui/buttons/glow
Installs the class-variance-authority and motion dependencies using bun.
```bash
bun add class-variance-authority motion
```
--------------------------------
### Install class-variance-authority and motion using yarn
Source: https://ui.unlumen.com/docs/ui/buttons/glow
Installs the class-variance-authority and motion dependencies using yarn.
```bash
yarn add class-variance-authority motion
```
--------------------------------
### Install Switch Component (npx)
Source: https://ui.unlumen.com/docs/ui/unlumen/switch
Use this command to add the Switch component to your project using npx.
```bash
npx shadcn@latest add @unlumen-ui/switch
```