### Install Spinner Component
Source: https://github.com/xxtomm/spell-ui/blob/main/docs/spinner/doc.mdx
Install the spinner component using the provided command. This is the primary installation step.
```bash
npm install @spell/ui
# or
yarn add @spell/ui
# or
pnpm add @spell/ui
```
--------------------------------
### Installation
Source: https://github.com/xxtomm/spell-ui/blob/main/docs/pop-button/doc.mdx
Instructions on how to install the Pop Button component.
```APIDOC
## Installation
To use the Pop Button component, install it using the following command:
```bash
npm install @your-scope/pop-button
```
Or using yarn:
```bash
yarn add @your-scope/pop-button
```
Then import it into your project:
```tsx
import { PopButton } from "@/components/pop-button";
```
```
--------------------------------
### Install Spell UI Badge
Source: https://github.com/xxtomm/spell-ui/blob/main/docs/badge/doc.mdx
Install the Spell UI Badge component using the provided command. This is the initial setup step.
```bash
npm install @spell-ui/badge
```
--------------------------------
### Installation
Source: https://github.com/xxtomm/spell-ui/blob/main/docs/highlighted-text/doc.mdx
Instructions for installing the HighlightedText component.
```APIDOC
## Installation
```tsx file=../../registry/spell-ui/highlighted-text.tsx
```
```
--------------------------------
### Installation
Source: https://github.com/xxtomm/spell-ui/blob/main/docs/slide-up-text/doc.mdx
Instructions on how to install the SlideUpText component.
```APIDOC
## Installation
Install the component using the provided package manager command:
```bash
# Example installation command (replace with actual command if available)
npm install @your-scope/slide-up-text
```
Or include it directly if using a specific setup:
```tsx
// Assuming the component is available in your registry
import { SlideUpText } from "@/components/slide-up-text";
```
```
--------------------------------
### Installation
Source: https://github.com/xxtomm/spell-ui/blob/main/docs/special-text/doc.mdx
Instructions on how to install the Spell UI component.
```APIDOC
## Installation
```tsx file=../../registry/spell-ui/special-text.tsx
```
```
--------------------------------
### Installation
Source: https://github.com/xxtomm/spell-ui/blob/main/docs/words-stagger/doc.mdx
How to install the WordsStagger component.
```APIDOC
## Installation
```tsx file=../../registry/spell-ui/words-stagger.tsx
```
```
--------------------------------
### Installation
Source: https://github.com/xxtomm/spell-ui/blob/main/docs/bars-spinner/doc.mdx
Instructions on how to install the Bars Spinner component.
```APIDOC
## Installation
To install the Bars Spinner component, use the following command:
```bash
# Assuming you are using a package manager like npm or yarn
npm install @your-package/bars-spinner
# or
yarn add @your-package/bars-spinner
```
Alternatively, you can copy the component files directly:
```tsx
// Copy from: ../../registry/spell-ui/bars-spinner.tsx
```
```
--------------------------------
### Install Kbd Component
Source: https://github.com/xxtomm/spell-ui/blob/main/docs/kbd/doc.mdx
Install the Kbd component using the provided command.
```bash
npm install @spell-ui/kbd
```
--------------------------------
### Install Dependencies
Source: https://github.com/xxtomm/spell-ui/blob/main/CONTRIBUTING.md
Install all project dependencies using pnpm.
```bash
pnpm i
```
--------------------------------
### Install Blur Reveal Component
Source: https://github.com/xxtomm/spell-ui/blob/main/docs/blur-reveal/doc.mdx
Install the Blur Reveal component using the provided command. This snippet shows the installation command for the blur-reveal component.
```bash
npx spell-ui install blur-reveal
```
--------------------------------
### Installation Highlighted Text
Source: https://github.com/xxtomm/spell-ui/blob/main/docs/highlighted-text/doc.mdx
Installs the highlighted text component. This snippet is part of the installation process.
```tsx
```tsx file=../../registry/spell-ui/highlighted-text.tsx
```
```
--------------------------------
### Install Text Marquee Component
Source: https://github.com/xxtomm/spell-ui/blob/main/docs/text-marquee/doc.mdx
Install the TextMarquee component from the registry. This is the primary installation step.
```tsx
```tsx file=../../registry/spell-ui/text-marquee.tsx
```
```
--------------------------------
### Run Development Server
Source: https://github.com/xxtomm/spell-ui/blob/main/CONTRIBUTING.md
Start the development server to view the project locally. Access it at http://localhost:3000.
```bash
pnpm dev
```
--------------------------------
### Words Stagger Installation Tab
Source: https://github.com/xxtomm/spell-ui/blob/main/docs/words-stagger/doc.mdx
Installation instructions for the words-stagger component, likely specific to a particular setup or version.
```tsx
```tsx file=../../registry/spell-ui/words-stagger.tsx
```
```
--------------------------------
### Installation Tab Component
Source: https://github.com/xxtomm/spell-ui/blob/main/docs/kbd/doc.mdx
This snippet demonstrates the usage of the InstallationTabs component with the 'kbd' item selected, likely for displaying installation instructions.
```tsx
```tsx file=../../registry/spell-ui/kbd.tsx
```
```
--------------------------------
### Usage Example
Source: https://github.com/xxtomm/spell-ui/blob/main/docs/pop-button/doc.mdx
A basic example of how to use the Pop Button component.
```APIDOC
## Usage Example
Here's a simple example of how to render the Pop Button component:
```tsx
Click Me
```
```
--------------------------------
### Install Tweet Component
Source: https://github.com/xxtomm/spell-ui/blob/main/docs/tweet/doc.mdx
Install the Tweet component using the provided installation tab. This snippet shows the file path for installation.
```tsx
```tsx file=../../registry/spell-ui/tweet.tsx
```
```
--------------------------------
### Install Copy Button Component
Source: https://github.com/xxtomm/spell-ui/blob/main/docs/copy-button/doc.mdx
Use this command to install the CopyButton component from the registry.
```bash
npm install @spell/copy-button
```
--------------------------------
### Build Component Registry JSON
Source: https://github.com/xxtomm/spell-ui/blob/main/CONTRIBUTING.md
Generate the `public/r/example-component.json` file, which is used for CLI installations.
```bash
pnpm registry:build
```
--------------------------------
### Speed Example
Source: https://github.com/xxtomm/spell-ui/blob/main/docs/special-text/doc.mdx
An example demonstrating the 'speed' prop for animating text.
```APIDOC
## Examples
### Speed
```tsx file=./demo-speed.tsx
```
```
--------------------------------
### Blur Reveal with Delay and Trigger
Source: https://github.com/xxtomm/spell-ui/blob/main/docs/blur-reveal/doc.mdx
This example shows how to use the 'delay' and 'trigger' props to control when the Blur Reveal animation starts. Set 'delay' for a delayed start and 'trigger' to manually control the animation.
```tsx
Delayed animation
```
--------------------------------
### ShimmerText Installation
Source: https://github.com/xxtomm/spell-ui/blob/main/docs/shimmer-text/doc.mdx
Install the ShimmerText component using the provided command. This snippet shows the installation command for the shimmer-text package.
```sh
npx spell-ui add shimmer-text
```
--------------------------------
### Animated Checkbox Installation
Source: https://github.com/xxtomm/spell-ui/blob/main/docs/animated-checkbox/doc.mdx
Shows how to install the animated-checkbox component from the registry.
```tsx
```tsx file=../../registry/spell-ui/animated-checkbox.tsx
```
```
--------------------------------
### QRCode: Share Link Example
Source: https://context7.com/xxtomm/spell-ui/llms.txt
An example demonstrating how to use QRCode to generate a shareable QR code with accompanying text. Import QRCode.
```tsx
import { QRCode } from "@/components/ui/qr-code";
// Share link example
Scan to visit
```
--------------------------------
### Install Logos Carousel
Source: https://github.com/xxtomm/spell-ui/blob/main/docs/logos-carousel/doc.mdx
Install the Logos Carousel component using the provided command. This snippet shows the file path for installation.
```bash
npx spell-ui@latest add logos-carousel
```
--------------------------------
### PerspectiveBook Installation
Source: https://github.com/xxtomm/spell-ui/blob/main/docs/perspective-book/doc.mdx
Import the component file directly from the registry.
```tsx
```tsx file=../../registry/spell-ui/perspective-book.tsx
```
```
--------------------------------
### Direction Example
Source: https://github.com/xxtomm/spell-ui/blob/main/docs/highlighted-text/doc.mdx
Example demonstrating the directional animation of the HighlightedText component.
```APIDOC
## Examples
### Direction
```tsx file=./demo-direction.tsx
```
```
--------------------------------
### Install Spell UI Components via CLI
Source: https://context7.com/xxtomm/spell-ui/llms.txt
Use the shadcn CLI to add specific components to your project.
```bash
npx shadcn@latest add "https://spell.sh/r/spinner"
npx shadcn@latest add "https://spell.sh/r/badge"
npx shadcn@latest add "https://spell.sh/r/marquee"
```
--------------------------------
### Install Spotify Card Component
Source: https://github.com/xxtomm/spell-ui/blob/main/docs/spotify-card/doc.mdx
Use this command to install the Spotify Card component as part of your project.
```tsx
```tsx file=../../registry/spell-ui/spotify-card.tsx
```
```
--------------------------------
### Examples
Source: https://github.com/xxtomm/spell-ui/blob/main/docs/pop-button/doc.mdx
Demonstrations of the Pop Button component with different color and size variations.
```APIDOC
## Examples
### Color Variations
This example showcases the different color options available for the Pop Button.
```tsx
// Assuming DemoVariant component renders various color examples
```
### Size Variations
This example demonstrates the different size options for the Pop Button.
```tsx
// Assuming DemoSizes component renders various size examples
```
```
--------------------------------
### Demo Examples
Source: https://github.com/xxtomm/spell-ui/blob/main/docs/bars-spinner/doc.mdx
Demonstration of the Bars Spinner component in various configurations.
```APIDOC
## Examples
### Default
This example shows the default appearance of the Bars Spinner.
```tsx file=./demo.tsx
```
### Size
This example demonstrates how to use the `size` prop to change the spinner's dimensions.
```tsx file=./demo-sizes.tsx
```
```
--------------------------------
### Install WordsStagger Component
Source: https://github.com/xxtomm/spell-ui/blob/main/docs/words-stagger/doc.mdx
Install the words-stagger component using npm or yarn.
```bash
npm install @spell-ui/words-stagger
yarn add @spell-ui/words-stagger
```
--------------------------------
### TiltCard: Product Card Example
Source: https://context7.com/xxtomm/spell-ui/llms.txt
An example of using TiltCard to create an interactive product card with an image and details. Import TiltCard.
```tsx
import { TiltCard } from "@/components/ui/tilt-card";
// Product card example
Product Name
$99.00
```
--------------------------------
### Badge Installation Tab
Source: https://github.com/xxtomm/spell-ui/blob/main/docs/badge/doc.mdx
Displays the installation code for the Spell UI Badge component within an installation tab.
```tsx
```tsx file=../../registry/spell-ui/badge.tsx
```
```
--------------------------------
### Install Randomized Text Component
Source: https://github.com/xxtomm/spell-ui/blob/main/docs/randomized-text/doc.mdx
Provides the command or code snippet for installing the randomized-text component using tabs for different installation methods.
```tsx
```tsx file=../../registry/spell-ui/randomized-text.tsx
```
```
--------------------------------
### Examples
Source: https://github.com/xxtomm/spell-ui/blob/main/docs/words-stagger/doc.mdx
Demonstrations of the WordsStagger component in action.
```APIDOC
## Examples
### Speed Example
```tsx file=./demo-speed.tsx
```
### Stagger Example
```tsx file=./demo-stagger.tsx
```
```
--------------------------------
### Install Fallback Avatar Component
Source: https://github.com/xxtomm/spell-ui/blob/main/docs/fallback-avatar/doc.mdx
Install the Fallback Avatar component using the provided command. This is a prerequisite for using the component in your project.
```bash
npx spell-ui@latest add fallback-avatar
```
--------------------------------
### Create Example Component
Source: https://github.com/xxtomm/spell-ui/blob/main/CONTRIBUTING.md
Define the main component structure in its dedicated TypeScript file. Use `cn` for class merging.
```typescript
import React from "react";
import { cn } from "@/lib/utils";
export default function ExampleComponent({
className,
children,
...props
}: React.HTMLAttributes) {
return (
{children}
);
}
```
--------------------------------
### Install Pop Button Component
Source: https://github.com/xxtomm/spell-ui/blob/main/docs/pop-button/doc.mdx
Install the Pop Button component using npm or yarn. This is the initial step before using it in your project.
```bash
```tsx file=../../registry/spell-ui/pop-button.tsx
```
```
--------------------------------
### LabelInput: Form Example
Source: https://context7.com/xxtomm/spell-ui/llms.txt
An example of integrating LabelInput components into a form for user sign-up. Import LabelInput.
```tsx
import { LabelInput } from "@/components/ui/label-input";
// Form example
```
--------------------------------
### Signature Component Installation Tab
Source: https://github.com/xxtomm/spell-ui/blob/main/docs/signature/doc.mdx
This snippet shows the file path for the signature component's installation tab.
```tsx
```tsx file=../../registry/spell-ui/signature.tsx
```
```
--------------------------------
### Spinner Component Installation
Source: https://github.com/xxtomm/spell-ui/blob/main/docs/spinner/doc.mdx
This code snippet shows the installation of the spinner component from the registry. It is typically used for setting up the component in your project.
```tsx
```tsx file=../../registry/spell-ui/spinner.tsx
```
```
--------------------------------
### Usage Examples
Source: https://github.com/xxtomm/spell-ui/blob/main/docs/slide-up-text/doc.mdx
Demonstrates various ways to use the SlideUpText component with different configurations.
```APIDOC
## Usage Examples
### Basic Usage
```tsx
Your text here
```
### Split By Words (Default)
```tsx
Animated words
```
### Split By Characters
```tsx
Animated characters
```
### Split By Lines
```tsx
Animated lines
```
### Custom Stagger and Delay
```tsx
Staggered text
```
### Animation From Center
```tsx
Center start animation
```
### Custom Transition
```tsx
Spring animation
```
### Manual Start (autoStart: false)
```tsx
// Animation will not start automatically
Manual start
```
### Using Callbacks
```tsx
console.log('Animation started!')} onComplete={() => console.log('Animation completed!')}>
Callback example
```
### In Viewport Animation
```tsx
// Animation triggers only when the component is in the viewport
In view animation
```
```
--------------------------------
### BarsSpinner Usage Examples
Source: https://github.com/xxtomm/spell-ui/blob/main/docs/bars-spinner/doc.mdx
Examples showing how to apply size and color properties to the spinner.
```tsx
```
--------------------------------
### FallbackAvatar: User List Example
Source: https://context7.com/xxtomm/spell-ui/llms.txt
An example of displaying multiple FallbackAvatars in a list, often used for user avatars. Import FallbackAvatar.
```tsx
import FallbackAvatar from "@/components/ui/fallback-avatar";
// User list example
const users = ["Alice", "Bob", "Charlie", "Diana"];
{users.map((name) => (
))}
```
--------------------------------
### Font Setup (Optional)
Source: https://github.com/xxtomm/spell-ui/blob/main/docs/pop-button/doc.mdx
Optional instructions for setting up the DynaPuff font with the Pop Button component.
```APIDOC
## Font Setup (Optional)
To use the playful DynaPuff font with this component, follow these steps:
1. **Add the font to your `layout.tsx`:**
```tsx
import { DynaPuff } from 'next/font/google'
const dynaPuff = DynaPuff({
subsets: ['latin'],
variable: '--font-dyna-puff',
})
export default function RootLayout({
children,
}: { children: React.ReactNode }) {
return (
{children}
)
}
```
2. **Add the CSS variable to your `globals.css`:**
```css
:root {
--font-pop: var(--font-dyna-puff);
}
```
```
--------------------------------
### Component Usage Example
Source: https://github.com/xxtomm/spell-ui/blob/main/CONTRIBUTING.md
Import and use the custom component in your application. Ensure the path is correct.
```typescript
import ExampleComponent from "@/components/example-component";
```
```typescript
Your content here
```
--------------------------------
### Clone Spell UI Repository
Source: https://github.com/xxtomm/spell-ui/blob/main/CONTRIBUTING.md
Clone your forked repository to your local machine to start contributing.
```bash
git clone https://github.com//spell-ui.git
```
--------------------------------
### TiltCard Usage Example
Source: https://github.com/xxtomm/spell-ui/blob/main/docs/tilt-card/doc.mdx
Basic implementation of the TiltCard component with custom configuration.
```tsx
Your content here
```
--------------------------------
### Install Signature Component
Source: https://github.com/xxtomm/spell-ui/blob/main/docs/signature/doc.mdx
Import the Signature component from the specified path. Ensure the font file is correctly placed.
```tsx
import { Signature } from "@/components/signature";
```
--------------------------------
### Fallback Avatar Installation Tab
Source: https://github.com/xxtomm/spell-ui/blob/main/docs/fallback-avatar/doc.mdx
Code snippet for installing the fallback-avatar component from the registry.
```tsx
```tsx file=../../registry/spell-ui/fallback-avatar.tsx
```
```
--------------------------------
### Logos Carousel - Installation Tab
Source: https://github.com/xxtomm/spell-ui/blob/main/docs/logos-carousel/doc.mdx
Shows the installation command for the Logos Carousel component within a tabbed interface.
```tsx
```tsx file=../../registry/spell-ui/logos-carousel.tsx
```
```
--------------------------------
### AnimatedCheckbox Todo List Example
Source: https://context7.com/xxtomm/spell-ui/llms.txt
A practical example of using AnimatedCheckbox within a dynamic todo list, managing the checked state of each task.
```tsx
import { AnimatedCheckbox } from "@/components/ui/animated-checkbox";
// Todo list example
function TodoList() {
const [tasks, setTasks] = useState([
{ id: 1, title: "Design mockups", done: false },
{ id: 2, title: "Write documentation", done: true },
{ id: 3, title: "Deploy to production", done: false },
]);
return (
);
}
```
--------------------------------
### AnimatedCheckbox Basic Usage
Source: https://context7.com/xxtomm/spell-ui/llms.txt
Demonstrates the basic usage of the AnimatedCheckbox component. No additional setup is required beyond importing the component.
```tsx
import { AnimatedCheckbox } from "@/components/ui/animated-checkbox";
// Basic usage
```
--------------------------------
### ExplodingInput Party Mode Example
Source: https://context7.com/xxtomm/spell-ui/llms.txt
Create a festive effect by using a variety of content and adjusting animation parameters for a 'party mode' feel. This example uses emoji strings mapped to span elements.
```tsx
import { ExplodingInput } from "@/components/ui/exploding-input";
// Party mode example
```
--------------------------------
### Animated Checkbox Component
Source: https://github.com/xxtomm/spell-ui/blob/main/docs/animated-checkbox/doc.mdx
This section covers the installation and usage of the Animated Checkbox component.
```APIDOC
## Installation
```tsx file=../../registry/spell-ui/animated-checkbox.tsx
```
## Usage
```tsx
import { AnimatedCheckbox } from "@/components/animated-checkbox";
```
```tsx
```
## Props
void",
nameDetails: "Callback when checked state changes"
},
{
name: "className",
type: "string",
nameDetails: "Additional CSS classes"
}
]}
/>
```
--------------------------------
### Implement LabelInput Variants
Source: https://github.com/xxtomm/spell-ui/blob/main/docs/label-input/doc.mdx
Examples of using LabelInput with different types and ring color configurations.
```tsx
```
--------------------------------
### Navigate to Project Directory
Source: https://github.com/xxtomm/spell-ui/blob/main/CONTRIBUTING.md
Change into the cloned project directory to begin making changes.
```bash
cd spell-ui
```
--------------------------------
### Blur Reveal with Speed Animation
Source: https://github.com/xxtomm/spell-ui/blob/main/docs/blur-reveal/doc.mdx
This example demonstrates the Blur Reveal component with custom speed settings for the reveal and segment animations. Adjust 'speedReveal' and 'speedSegment' to control the animation's pace.
```tsx
Fast animation
```
--------------------------------
### Fallback Avatar Component Sizes Demo
Source: https://github.com/xxtomm/spell-ui/blob/main/docs/fallback-avatar/doc.mdx
Demonstrates different sizes of the Fallback Avatar component. This example helps visualize the 'size' prop's effect.
```tsx
```tsx file=./demo-sizes.tsx
```
```
--------------------------------
### Stagger Animation Example
Source: https://github.com/xxtomm/spell-ui/blob/main/docs/words-stagger/doc.mdx
Demonstrates the stagger animation effect of the WordsStagger component.
```tsx
```tsx file=./demo-stagger.tsx
```
```
--------------------------------
### Custom Display Demo Structure
Source: https://github.com/xxtomm/spell-ui/blob/main/docs/kbd/doc.mdx
This snippet shows the setup for a DemoCustom component, featuring its preview and code within a DemoCanvas.
```tsx
```tsx file=./demo-custom.tsx
```
```
--------------------------------
### Implement ColorSelector Component
Source: https://context7.com/xxtomm/spell-ui/llms.txt
Provides examples for basic color selection, callback handling, size variants, form integration, and state-managed product color pickers.
```tsx
import { ColorSelector } from "@/components/ui/color-selector";
// Basic usage
// With callback
console.log("Selected:", color)}
/>
// With different sizes
// Form integration with hidden input
// Product color selection example
function ProductColorPicker() {
const [color, setColor] = useState("blue");
return (