resizable
neobrutalism/resizableFreeComponent
neobrutalism publishes no description for this item.
Live preview
live · rendered by the registry
Rendered by neobrutalism on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://neobrutalism.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?: boolean33}) {34 return (35 <ResizablePrimitive.Separator36 data-slot="resizable-handle"37 className={cn(38 "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:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary 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 neobrutalism
All 54 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| accordionaccordion | neobrutalism | Components | Free | 2 deps | |
| alertalert | neobrutalism | Components | Free | 2 deps | |
| alert-dialogalert-dialog | neobrutalism | Components | Free | 1 dep | |
| aspect-ratioaspect-ratio | neobrutalism | Components | Free | 1 dep | |
| avataravatar | neobrutalism | Components | Free | 1 dep | |
| badgebadge | neobrutalism | Components | Free | 2 deps | |
| breadcrumbbreadcrumb | neobrutalism | Components | Free | 2 deps | |
| buttonbutton | neobrutalism | Components | Free | 2 deps |
