The canvas’s tool, add-step and zoom controls.
SelectPanStep pickerZoomFit
Live components with example content. Try their controls, or switch the theme and palette.
Usage
"use client";
import { CanvasToolbar } from "@/components/assistant/canvas-toolbar";
export default function Example() {
return (
<CanvasToolbar tool="select" onToolChange={() => {}} pickerOpen={false} onPickerOpenChange={() => {}} picker={null} readOnly={false} onFit={() => {}} onZoomIn={() => {}} onZoomOut={() => {}} controls={[]} />
);
}
Included variants
- Select
- Pan
- Step picker
- Zoom
- Fit
In Ciele
Use the workspace imports shown above inside Ciele. App components use the shared Tailwind tokens in globals.css. For another project, adapt the imports and bring the dependencies listed in the source.
Source files
- apps/web/src/components/assistant/canvas-toolbar.tsx
Source code
The implementation used by Ciele, including its supporting components. Original attribution and license notices remain in the files.
Loading source files…