Skip to content

Commit

Permalink
Min and max story
Browse files Browse the repository at this point in the history
  • Loading branch information
bjarnef committed Oct 3, 2023
1 parent 58f926f commit b4a32ad
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions packages/uui-split-panel/lib/uui-split-panel.story.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,31 @@ export const Vertical: Story = {
},
};

export const MinAndMax: Story = {
args: {
},
parameters: {
docs: {
source: {
code: `<uui-split-panel style="--min: 150px; --max: calc(100% - 150px);">
<div
slot="start"
style="height: 200px; background: var(--uui-color-background); display: flex; align-items: center; justify-content: center; overflow: hidden;"
>
Start
</div>
<div
slot="end"
style="height: 200px; background: var(--uui-color-background); display: flex; align-items: center; justify-content: center; overflow: hidden;"
>
End
</div>
</uui-split-panel>`,
},
},
},
};

export const Snapping: Story = {
args: {
snap: "100px 50%",
Expand Down

0 comments on commit b4a32ad

Please sign in to comment.