resizable
panels that share a movable 1 px rule. its 8 px hit area works with the pointer, and a focused handle moves with the arrow keys.
bunx --bun shadcn@latest add @mk/resizableexample
drag the grip to divide the run list and its log. tab to the separator and use left or right to resize with the keyboard.
orientation
vertical groups stack the same panels and turn the grip. the separator now responds to up and down.
handles
a plain rule works without the grip. its keyboard ring straddles the rule at zero offset.
states
hover and drag turn the rule foreground. a gripped separator draws its focus edge inside the small grip; disabled fixes the split.
rest
1 px rule, 8 px hit area
hover
rule takes foreground
dragging
rule takes foreground
focus
inside grip ring
plain focus
zero-offset ring on the rule
disabled
fixed split, no keyboard stop
rest
1 px rule, 8 px hit area
hover
rule takes foreground
dragging
rule takes foreground
focus
inside grip ring
plain focus
zero-offset ring on the rule
disabled
fixed split, no keyboard stop