promptCompare
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v96View latest version
A styled toolbar component for React Flow nodes with flexible positioning and custom actions.
The Toolbar component provides a positioned toolbar that attaches to nodes in
React Flow canvases. It features modern card styling with backdrop blur and
flexbox layout for action buttons and controls.
npx ai-elements@latest add toolbar
- Attaches to any React Flow node
- Bottom positioning by default
- Rounded card design with border
- Theme-aware background styling
- Flexbox layout with gap spacing
- Full TypeScript support
- Compatible with all React Flow NodeToolbar features
| Prop | Type | Default | Description |
|---|---|---|---|
className | string | - | Additional CSS classes to apply to the toolbar. |
...props | ComponentProps<typeof NodeToolbar> | - | Any other props from @xyflow/react NodeToolbar component (position, offset, isVisible, etc.). |