feat: introduce fixed toolbar and insert button for enhanced editor functionality

This commit is contained in:
Anish Sarkar 2026-02-16 15:49:07 +05:30
parent 73147c69a3
commit 1450e22f54
8 changed files with 359 additions and 87 deletions

View file

@ -0,0 +1,26 @@
'use client';
import * as React from 'react';
import { cn } from '@/lib/utils';
import { Toolbar } from './toolbar';
export function FixedToolbar({
children,
className,
...props
}: React.ComponentProps<typeof Toolbar>) {
return (
<Toolbar
className={cn(
'scrollbar-hide sticky top-0 left-0 z-50 w-full justify-between overflow-x-auto rounded-t-lg border-b bg-background/95 p-1 backdrop-blur supports-backdrop-filter:bg-background/60',
className
)}
{...props}
>
{children}
</Toolbar>
);
}