Function
Toolbar
({ className, ...props }: ToolbarPrimitive.Root.Props)
Source from the content-addressed store, hash-verified
| 5 | import { cn } from "@/lib/utils"; |
| 6 | |
| 7 | function Toolbar({ className, ...props }: ToolbarPrimitive.Root.Props) { |
| 8 | return ( |
| 9 | <ToolbarPrimitive.Root |
| 10 | className={cn( |
| 11 | "relative flex gap-2 rounded-xl border bg-card bg-clip-padding p-1 text-card-foreground", |
| 12 | className, |
| 13 | )} |
| 14 | data-slot="toolbar" |
| 15 | {...props} |
| 16 | /> |
| 17 | ); |
| 18 | } |
| 19 | |
| 20 | function ToolbarButton({ className, ...props }: ToolbarPrimitive.Button.Props) { |
| 21 | return ( |
Callers
nothing calls this directly
Tested by
no test coverage detected