mediahub-fe/app/[locale]/(protected)/components/resizable/source-code.ts

29 lines
893 B
TypeScript
Raw Normal View History

2024-11-26 03:09:48 +00:00
export const basicResizable=`import {
ResizableHandle,
ResizablePanel,
ResizablePanelGroup,
} from "@/components/ui/resizable"
const BasicResizable = () => {
return (
<div className="flex justify-center">
<ResizablePanelGroup
direction="horizontal"
className="min-h-[300px] max-w-xl rounded-lg border"
>
<ResizablePanel defaultSize={25}>
<div className="flex h-full items-center justify-center p-6">
<span className="font-semibold">Sidebar</span>
</div>
</ResizablePanel>
<ResizableHandle withHandle />
<ResizablePanel defaultSize={75}>
<div className="flex h-full items-center justify-center p-6">
<span className="font-semibold">Content</span>
</div>
</ResizablePanel>
</ResizablePanelGroup>
</div>
)
}
export default BasicResizable;`