Skip to content

Commit

Permalink
docs: Update resize.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
abernier authored Dec 13, 2024
1 parent 7b0b4b8 commit 262bfab
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions docs/staging/resize.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,7 @@ sourcecode: src/core/Resize.tsx
[![](https://img.shields.io/badge/-storybook-%23ff69b4)](https://drei.pmnd.rs/?path=/story/staging-resize)

<Grid cols={4}>
<a href="https://codesandbox.io/s/6yg0i3">
<img
width="20%"
src="https://user-images.githubusercontent.com/76580/234665568-2be311d2-1896-4f82-ae20-b10b44c1e952.png"
alt="Demo"
/>
</a>
<Codesandbox id="6yg0i3" />
</Grid>

Calculates a boundary box and scales its children so the highest dimension is constrained by 1. NB: proportions are preserved.
Expand Down

0 comments on commit 262bfab

Please sign in to comment.