BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/gmhlab/resizable

resizable

gmhlab/resizable
FreeComponent

gmhlab publishes no description for this item.

Install it

npx shadcn@latest add https://raw.githubusercontent.com/gmhlab/monorepo/main/packages/ui/public/r/resizable.json

Source

registry/new-york/ui/resizable.tsxraw.githubusercontent.com/gmhlab/monorepo/main/packages/ui/public/r/resizable.json
1"use client"
2
3import { GripVerticalIcon } from "lucide-react"
4import * as ResizablePrimitive from "react-resizable-panels"
5
6import { cn } from "@/lib/utils"
7
8function ResizablePanelGroup({
9 className,
10 ...props
11}: ResizablePrimitive.GroupProps) {
12 return (
13 <ResizablePrimitive.Group
14 data-slot="resizable-panel-group"
15 className={cn(
16 "flex h-full w-full aria-[orientation=vertical]:flex-col",
17 className
18 )}
19 {...props}
20 />
21 )
22}
23
24function ResizablePanel({ ...props }: ResizablePrimitive.PanelProps) {
25 return <ResizablePrimitive.Panel data-slot="resizable-panel" {...props} />
26}
27
28function ResizableHandle({
29 withHandle,
30 className,
31 ...props
32}: ResizablePrimitive.SeparatorProps & {
33 withHandle?: boolean
34}) {
35 return (
36 <ResizablePrimitive.Separator
37 data-slot="resizable-handle"
38 className={cn(
39 "bg-border focus-visible:ring-ring 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:ring-offset-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",
40 className
41 )}
42 {...props}
43 >
44 {withHandle && (
45 <div className="bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border">
46 <GripVerticalIcon className="size-2.5" />
47 </div>
48 )}
49 </ResizablePrimitive.Separator>
50 )
51}
52
53export { ResizableHandle, ResizablePanel, ResizablePanelGroup }

What it pulls in

npm packages

  • lucide-react
  • react-resizable-panels

Files it writes

  • registry/new-york/ui/resizable.tsx

Facts

Registry
gmhlab
Type
registry:ui
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-02
Last confirmed
2 days ago

Go to the source

gwglobalmentalhealth.com gmhlab/monorepo on GitHub Raw registry item This item as JSON

More from gmhlab

All 64 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
accordionaccordiongmhlabComponentsFree2 deps
alertalertgmhlabComponentsFree1 dep
alert-dialogalert-dialoggmhlabComponentsFree1 dep
aspect-ratioaspect-ratiogmhlabComponentsFree1 dep
avataravatargmhlabComponentsFree1 dep
badgebadgegmhlabComponentsFree2 deps
breadcrumbbreadcrumbgmhlabComponentsFree2 deps
buttonbuttongmhlabComponentsFree2 deps
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex