### Install and Run Clippkit Documentation Source: https://github.com/reactvideoeditor/clippkit/blob/main/README.md Use these commands to install dependencies and start the documentation site locally. This allows exploration and testing of Clippkit components. ```bash pnpm install pnpm run dev ``` -------------------------------- ### Run Development Server Source: https://github.com/reactvideoeditor/clippkit/blob/main/apps/docs/README.md Use these commands to start the development server for the Next.js application. Ensure you have npm, pnpm, or yarn installed. ```bash npm run dev # or pnpm dev # or yarn dev ``` -------------------------------- ### Run Development Server Source: https://github.com/reactvideoeditor/clippkit/blob/main/CONTRIBUTING.md Start the documentation and registry locally. ```bash pnpm run dev ``` -------------------------------- ### Install Dependencies Source: https://github.com/reactvideoeditor/clippkit/blob/main/CONTRIBUTING.md Install project dependencies using pnpm. ```bash pnpm install ``` -------------------------------- ### Install Linear Waveform via CLI Source: https://github.com/reactvideoeditor/clippkit/blob/main/apps/docs/content/docs/ui/(components)/audio-waveforms/linear-waveform.mdx Use the provided npx command to add the LinearWaveform component to your project. This is the recommended installation method. ```bash npx shadcn@latest add "https://clippkit.com/r/linear-waveform" ``` -------------------------------- ### Install Sliding Text Component via CLI Source: https://github.com/reactvideoeditor/clippkit/blob/main/apps/docs/content/docs/ui/(components)/text-elements/sliding-text.mdx Use the `npx shadcn@latest add` command to install the Sliding Text component directly into your project. ```bash npx shadcn@latest add "https://clippkit.com/r/sliding-text" ``` -------------------------------- ### Configure Component Path in components.json Source: https://github.com/reactvideoeditor/clippkit/blob/main/apps/docs/content/docs/ui/installation.mdx Customize the installation directory for components by editing the `aliases.components` value in your `components.json` file. This example sets the path to `@/components/clippkit`. ```json { "aliases": { "components": "@/components/clippkit" } } ``` -------------------------------- ### Install Popping Text Component CLI Source: https://github.com/reactvideoeditor/clippkit/blob/main/apps/docs/content/docs/ui/(components)/text-elements/popping-text.mdx Use this command to install the Popping Text component using the shadcn CLI. ```bash npx shadcn@latest add "https://clippkit.com/r/popping-text" ``` -------------------------------- ### Example Component Documentation File (MDX) Source: https://github.com/reactvideoeditor/clippkit/blob/main/CONTRIBUTING.md MDX file for documenting the new component. Includes frontmatter for title and description, and a placeholder for a live preview tab. ```mdx --- title: Example Component description: A brief description of what the Example Component does. preview: true # This likely enables the live preview tab --- {/* This should match the demo name */} ## Installation ``` -------------------------------- ### BarWaveform Component and Usage Example Source: https://context7.com/reactvideoeditor/clippkit/llms.txt Demonstrates the BarWaveform component, its props interface, and a full usage example within a Remotion Player. It shows how to fetch audio data and configure the waveform's visual properties. ```tsx import React from "react"; import { useAudioData, MediaUtilsAudioData } from "@remotion/media-utils"; import { Player } from "@remotion/player"; import { Audio } from "remotion"; import BarWaveform from "@/components/bar-waveform"; // BarWaveform Props Interface interface BarWaveformProps { audioData?: MediaUtilsAudioData | null; // Audio data from useAudioData numberOfSamples?: number; // Number of bars (default: 64) barColor?: string; // Bar color (default: "var(--foreground)") barWidth?: number; // Width of each bar (default: 5) barGap?: number; // Gap between bars (default: 2) waveAmplitude?: number; // Max bar height (default: 100) waveSpeed?: number; // Animation speed for fallback (default: 10) containerStyle?: React.CSSProperties; // Custom container styles height?: string | number; // Component height width?: string | number; // Component width barBorderRadius?: string | number; // Bar corner radius (default: 0) growUpwardsOnly?: boolean; // Bars grow only upward (default: false) } // Composition component that combines waveform and audio const AudioWaveformComposition: React.FC<{ barWaveformProps: Omit, "audioData"> & { audioData?: MediaUtilsAudioData | null; }; mediaSrc: string; }> = ({ barWaveformProps, mediaSrc }) => ( <>