Tool Dock - React Component | Kokonut UI
Tool Dock
An editor tool dock with a sliding selection plate, shortcut tooltips and flyouts that you can throw to any edge.
Install with
npx shadcn@latest add https://kokonutui.com/r/toolbar.json, then show me how to use it.
Installation
Tool Dock is a free, open-source React component in the Kokonut UI Navigation collection. Add it with the shadcn CLI, which copies the source into components/kokonutui/toolbar.tsx, so the code is yours to change.
npx shadcn@latest add @kokonutui/toolbar
Or add it by hand: install its packages, then copy the source from above into components/kokonutui/toolbar.tsx.
npm install lucide-react motion
Usage
import Toolbar from "@/components/kokonutui/toolbar";
export default function Example() {
return <Toolbar />;
}
Props
toolsDockTool[]Defaultbuilt-invaluestring
The active tool id, for a controlled dock.defaultValuestringonValueChange(toolId: string) => voiddefaultEdgeDockEdgeDefault `