Docs
Installation

How to use DevKit components in your project

DevKit components are designed as copy-paste friendly building blocks that work seamlessly with shadcn/ui. Choose the integration method that fits your workflow:

  1. Install shadcn/ui (if you haven't already):
pnpm dlx shadcn@latest init
  1. Add DevKit components:
pnpm dlx shadcn@latest add [component-path]

Example commands:

# For Chat components
npx shadcn@latest add https//devkit.kiron.dev/k/chat
 
# For UI components
npx shadcn@latest add https//devkit.kiron.dev/k/video-player
 
# For hooks
npx shadcn@latest add https//devkit.kiron.dev/k/use-local-storage

Method 2: Manual Copy-Paste

  1. Browse components in the documentation:

  2. Copy the component code from the docs

  3. Create a new file in your project:

    • UI Components → /components/ui/[component-name].tsx
    • Utilities → /utils/[utility-name].tsx
  4. Paste and customize as needed

For TypeScript Users

All components include type definitions out of the box. No additional setup needed.

Updating Components

To get the latest versions:

  1. Re-run the shadcn add command
  2. Or manually copy the updated code from docs

Why are you waiting?

Get started with DevKit components today and build amazing applications in no time!