parent
7faa5f1c9f
commit
a68eb2a011
41 changed files with 2350 additions and 800 deletions
20
components/custom/sidebar-toggle.tsx
Normal file
20
components/custom/sidebar-toggle.tsx
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
import { ComponentProps } from 'react';
|
||||
|
||||
import { SidebarTrigger } from '@/components/ui/sidebar';
|
||||
import { BetterTooltip } from '@/components/ui/tooltip';
|
||||
import { cn } from '@/lib/utils';
|
||||
|
||||
export function SidebarToggle({
|
||||
className,
|
||||
}: ComponentProps<typeof SidebarTrigger>) {
|
||||
return (
|
||||
<BetterTooltip content="Toggle Sidebar" align="start">
|
||||
<SidebarTrigger
|
||||
className={cn(
|
||||
'size-10 md:size-8 [&>svg]:!size-5 md:[&>svg]:!size-4',
|
||||
className
|
||||
)}
|
||||
/>
|
||||
</BetterTooltip>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue