Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow element type of wrapper to be configurable #72

Open
elisechant opened this issue Oct 24, 2017 · 0 comments
Open

Allow element type of wrapper to be configurable #72

elisechant opened this issue Oct 24, 2017 · 0 comments

Comments

@elisechant
Copy link

Problem

To use this module within svg, we need to be able to use <g> instead of <div> for wrappers.

Expected

Make

configurable at https://github.com/digidem/react-dimensions/blob/master/index.jsx#L170 to other DOM element types

Code in question

 return (
          <div style={wrapperStyle} ref='wrapper'>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant