Resizable storybook page

This commit is contained in:
Matt Aitken
2024-08-12 16:40:59 +01:00
parent 1d12f8a619
commit b46698b820
2 changed files with 27 additions and 0 deletions
@@ -0,0 +1,23 @@
import {
ResizableHandle,
ResizablePanel,
ResizablePanelGroup,
} from "~/components/primitives/Resizable";
export default function Story() {
return (
<div className="h-full">
<ResizablePanelGroup>
<ResizablePanel id={"1-left"} className="bg-sky-500" />
<ResizableHandle id="1-split" />
<ResizablePanel
id={"1-right"}
// min="100px"
// max="250px"
default="100px"
className="bg-teal-500"
/>
</ResizablePanelGroup>
</div>
);
}
@@ -72,6 +72,10 @@ const stories: Story[] = [
name: "Radio group",
slug: "radio-group",
},
{
name: "Resizable",
slug: "resizable",
},
{
name: "Segemented control",
slug: "segmented-control",