Getting Started
Components
Installing Infactory UI components uses the standard shadcn CLI. Components can be installed via direct URL or by configuring a custom registry namespace.
pnpm dlx shadcn@latest add https://ui.infactory.ai//r/sample-queries.json
This method always works and requires no configuration.
Prerequisites
Before installing Infactory UI, make sure your environment meets the following requirements:
- Node.js version 18 or later
- A Next.js project
- shadcn/ui setup in your project. If you don't have it setup, running any install command will set it up for you.
Installing components
Infactory UI components are distributed via the shadcn registry system. The CLI downloads the component's code and integrates it into your project's directory (usually under your components folder).
After running the command, you should see a confirmation in your terminal that the files were added. You can then proceed to use the component in your code.