Comments (8)
Including changes from #99 in upcoming release
from react-spaces.
@gorkamolero This sounds pretty good, how do you imagine this would look?
<Viewport as={MyCustomComponent} ></Viewport>
Or would it be so ref
could be given?
from react-spaces.
from react-spaces.
In it's simplest form this is a typing issue. However, if you're looking to pass a component like so:
<Viewport as={<MyCustomComponent someProp={someValue} />} ></Viewport>
Then this would need quite a bit more work as this would to be handled as a special case, and cloning would have to occur.
I've opened a PR for this.
from react-spaces.
from react-spaces.
Prepping function in #103
from react-spaces.
Functionality has now been released in v0.3.0
from react-spaces.
from react-spaces.
Related Issues (20)
- Dynamic minimum and maximum size when resizing does not work HOT 3
- <Fill/> width can exceed <ViewPort/> width HOT 3
- dynamic calc miscalculation HOT 12
- add sourcecode to lorem-ipsum demo HOT 1
- Trying to resize panel throws `getBoundingClientRect` error HOT 4
- bug: resizeType always is "resize-right" HOT 1
- bug: how to judge "LeftResizable" drag's direction? HOT 1
- Corner resize handles HOT 3
- Opposite edge resizing (left/right or top/bottom)
- Attempted import error: 'unstable_useOpaqueIdentifier' is not exported from 'react' HOT 2
- Auto scroll not working while dragging using react-beautiful-dnd HOT 1
- Styles not working as expected HOT 2
- handleSize seems to be ignored on Custom spaces, always 5px HOT 3
- SSR on 0.2.0: ReferenceError: document is not defined HOT 8
- `onResizeEnd` doesn't respect `maximumSize` if `size` === `maximumSize` HOT 1
- Is it possible to have a minimum size fill HOT 1
- Update peer dependencies for react to include v17 HOT 4
- Allow grid/snap points to be specified on a resizable space to constrain resizes
- Customize Handles HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-spaces.