Resizable
edgecom/resizableFreeComponent
The Edgecom Resizable component.
Live preview
live · rendered by the registry
Rendered by edgecom on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://design.edgecom.ai/r/resizable.jsonSource
1"use client"23import * as ResizablePrimitive from "react-resizable-panels"45import { cn } from "@/lib/utils"6import { GripVerticalIcon } from "lucide-react"78function ResizablePanelGroup({9 className,10 ...props11}: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) {12 return (13 <ResizablePrimitive.PanelGroup14 data-slot="resizable-panel-group"15 className={cn(16 "flex h-full w-full data-[panel-group-direction=vertical]:flex-col",17 className18 )}19 {...props}20 />21 )22}2324function ResizablePanel({25 ...props26}: React.ComponentProps<typeof ResizablePrimitive.Panel>) {27 return <ResizablePrimitive.Panel data-slot="resizable-panel" {...props} />28}2930function ResizableHandle({31 withHandle,32 className,33 ...props34}: React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {35 withHandle?: boolean36}) {37 return (38 <ResizablePrimitive.PanelResizeHandle39 data-slot="resizable-handle"40 className={cn(41 "relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:outline-none data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",42 className43 )}44 {...props}45 >46 {withHandle && (47 <div className="z-10 flex h-4 w-3 items-center justify-center rounded-xs border border-border bg-border">48 <GripVerticalIcon className="size-2.5" />49 </div>50 )}51 </ResizablePrimitive.PanelResizeHandle>52 )53}5455export { ResizablePanelGroup, ResizablePanel, ResizableHandle }
What it pulls in
npm packages
Other registry items
Files it writes
More from edgecom
All 66 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Accordionaccordion | edgecom | Components | Free | 2 deps | |
| Alertalert | edgecom | Components | Free | 1 dep | |
| Alert Dialogalert-dialog | edgecom | Components | Free | 1 dep | |
| Avataravatar | edgecom | Components | Free | 1 dep | |
| Badgebadge | edgecom | Components | Free | 2 deps | |
| Bannerbanner | edgecom | Components | Free | 1 dep | |
| Breadcrumbbreadcrumb | edgecom | Components | Free | 2 deps | |
| Buttonbutton | edgecom | Components | Free | 2 deps |
