resizable
agentmesh/resizableFreeComponent
shadcn/ui publishes no description for this item.
Live preview
live · rendered by the registry
Rendered by shadcn/ui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://raw.githubusercontent.com/ombhanushaliii/agentmesh/main/example/ui/apps/v4/public/r/styles/base-vega/resizable.jsonSource
1"use client"23import * as ResizablePrimitive from "react-resizable-panels"45import { cn } from "@/registry/base-vega/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?: boolean33}) {34 return (35 <ResizablePrimitive.Separator36 data-slot="resizable-handle"37 className={cn(38 "relative flex w-px items-center justify-center bg-border ring-offset-background after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-ring 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="z-10 flex h-6 w-1 shrink-0 rounded-lg bg-border" />45 )}46 </ResizablePrimitive.Separator>47 )48}4950export { ResizableHandle, ResizablePanel, ResizablePanelGroup }
What it pulls in
npm packages
Files it writes
More from shadcn/ui
All 201 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| accordionaccordion | shadcn/ui | Components | Free | no deps | |
| alertalert | shadcn/ui | Components | Free | no deps | |
| alert-dialogalert-dialog | shadcn/ui | Components | Free | no deps | |
| aspect-ratioaspect-ratio | shadcn/ui | Components | Free | no deps | |
| avataravatar | shadcn/ui | Components | Free | no deps | |
| badgebadge | shadcn/ui | Components | Free | no deps | |
| breadcrumbbreadcrumb | shadcn/ui | Components | Free | no deps | |
| buttonbutton | shadcn/ui | Components | Free | no deps |
