Resizable
uiable/resizableFreeComponent
Resizable component.
Live preview
live · rendered by the registry
Rendered by uiable on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://uiable.com/r/resizable.jsonSource
1"use client";23import * as ResizablePrimitive from "react-resizable-panels";45import { cn } from "@/lib/utils";67function ResizablePanelGroup({8 className,9 ...props10}: ResizablePrimitive.GroupProps) {11 return (12 <ResizablePrimitive.Group13 data-slot="resizable-panel-group"14 className={cn(15 "flex h-full w-full aria-[orientation=vertical]:flex-col",16 className17 )}18 {...props}19 />20 );21}2223function ResizablePanel({ ...props }: ResizablePrimitive.PanelProps) {24 return <ResizablePrimitive.Panel data-slot="resizable-panel" {...props} />;25}2627function ResizableHandle({28 withHandle,29 className,30 ...props31}: ResizablePrimitive.SeparatorProps & {32 withHandle?: boolean;33}) {34 return (35 <ResizablePrimitive.Separator36 data-slot="resizable-handle"37 className={cn(38 "bg-border focus-visible:ring-ring ring-offset-background relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:outline-hidden aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full aria-[orientation=horizontal]:after:left-0 aria-[orientation=horizontal]:after:h-1 aria-[orientation=horizontal]:after:w-full aria-[orientation=horizontal]:after:translate-x-0 aria-[orientation=horizontal]:after:-translate-y-1/2 [&[aria-orientation=horizontal]>div]:rotate-90",39 className40 )}41 {...props}42 >43 {withHandle && (44 <div className="bg-border z-10 flex h-6 w-1 shrink-0 rounded-lg" />45 )}46 </ResizablePrimitive.Separator>47 );48}4950export { ResizableHandle, ResizablePanel, ResizablePanelGroup };
What it pulls in
npm packages
Files it writes
More from uiable
All 712 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Accordionaccordion | uiable | Components | Free | 2 deps | |
| Alertalert | uiable | Components | Free | 1 dep | |
| Alert Dialogalert-dialog | uiable | Components | Free | 1 dep | |
| Aspect Ratioaspect-ratio | uiable | Components | Free | no deps | |
| Attachmentattachment | uiable | Components | Free | 2 deps | |
| Avataravatar | uiable | Components | Free | 1 dep | |
| Badgebadge | uiable | Components | Free | 2 deps | |
| Breadcrumbbreadcrumb | uiable | Components | Free | 2 deps |
