BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/blok/resizable

Resizable

blok/resizable
FreeComponent

Accessible resizable panel groups and layouts with keyboard support.

Install it

npx shadcn@latest add https://blok.sitecore.com/r/resizable.json

Source

src/components/ui/resizable.tsxblok.sitecore.com/r/resizable.json
1"use client";
2
3import { Icon } from "@/lib/icon";
4import { mdiDragVertical } from "@mdi/js";
5import type * as React from "react";
6import * as ResizablePrimitive from "react-resizable-panels";
7
8import { cn } from "@/lib/utils";
9
10function ResizablePanelGroup({
11 className,
12 ...props
13}: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) {
14 return (
15 <ResizablePrimitive.PanelGroup
16 data-slot="resizable-panel-group"
17 className={cn(
18 "flex h-full w-full data-[panel-group-direction=vertical]:flex-col",
19 className,
20 )}
21 {...props}
22 />
23 );
24}
25
26function ResizablePanel({
27 ...props
28}: React.ComponentProps<typeof ResizablePrimitive.Panel>) {
29 return <ResizablePrimitive.Panel data-slot="resizable-panel" {...props} />;
30}
31
32function ResizableHandle({
33 withHandle,
34 className,
35 ...props
36}: React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
37 withHandle?: boolean;
38}) {
39 return (
40 <ResizablePrimitive.PanelResizeHandle
41 data-slot="resizable-handle"
42 className={cn(
43 "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 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-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90",
44 className,
45 )}
46 {...props}
47 >
48 {withHandle && (
49 <div className="bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border">
50 <Icon path={mdiDragVertical} size={1} className="size-2.5" />
51 </div>
52 )}
53 </ResizablePrimitive.PanelResizeHandle>
54 );
55}
56
57export { ResizablePanelGroup, ResizablePanel, ResizableHandle };

What it pulls in

npm packages

  • react-resizable-panels@3.0.3
  • @mdi/js

Other registry items

  • https://blok.sitecore.com/r/theme.json

Files it writes

  • src/components/ui/resizable.tsx
  • src/lib/icon.tsx

Facts

Registry
blok
Type
registry:ui
Access
Free
Files written
2
Licence
NOASSERTION
First indexed
2026-08-03
Last confirmed
yesterday

Go to the source

blok.sitecore.com Sitecore/blok on GitHub Raw registry item This item as JSON

More from blok

All 72 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AccordionaccordionblokComponentsFree2 deps · 2 files
Action baraction-barblokComponentsFree1 dep · 2 files
AlertalertblokComponentsFree2 deps · 2 files
Alert dialogalert-dialogblokComponentsFree2 deps
Aspect ratioaspect-ratioblokComponentsFree1 dep
AvataravatarblokComponentsFree1 dep
BadgebadgeblokComponentsFree2 deps
All componentsblok-componentsblokComponentsFreeno 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