Bpistle/src/components/Titlebar/index.tsx
2025-01-26 16:39:16 +08:00

20 lines
335 B
TypeScript

import { cn } from '@/lib/utils'
export function Titlebar({
children,
className
}: {
children?: React.ReactNode
className?: string
}) {
return (
<div
className={cn(
'sticky top-0 w-full z-20 bg-background [&_svg]:size-4 [&_svg]:shrink-0',
className
)}
>
{children}
</div>
)
}