Skip to content

Commit

Permalink
chore: update experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan committed Jan 21, 2021
1 parent bf8c59d commit 3a6d9ce
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions pages/fixtures/experiments.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,21 @@ function Eleven() {
setHeight(undefined)
}
}}
footer={
<Button
onClick={() =>
sheetRef.current.snapTo(
({ height, snapPoints }) => {
const minSnap = Math.min(...snapPoints)
return height > minSnap ? minSnap : Math.max(...snapPoints)
},
{ velocity: 0, source: 'reset' }
)
}
>
Reset
</Button>
}
>
<SheetContent style={{ height }}>
<Button
Expand Down

0 comments on commit 3a6d9ce

Please sign in to comment.