Command Palette

Search for a command to run...

Installation

Optics is a collection of re-usable components built with Base 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 @optics/accordion

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