Command Palette

Search for a command to run...

Installation

How to install Optics components in your project.

Optics is a collection of re-usable components built with Radix UI and Tailwind CSS. It follows the same philosophy as shadcn/ui - components are not installed as dependencies, but copied directly into your project so you have full control over them.

1Install the shadcn CLI

Optics uses the official shadcn CLI to add components to your project.

bunx --bun shadcn@latest init

2Add components

Now you can add any component from the Optics registry:

bunx --bun shadcn@latest add https://optics.agusmayol.com.ar/r/accordion.json

This will copy the button component and its dependencies into your project.