Flipboard / react-canvas

High performance <canvas> rendering for React components
BSD 3-Clause "New" or "Revised" License
13.17k stars 920 forks source link

Ability to add an id or className to the top level Surface component. #137

Closed CharlieGreenman closed 8 years ago

CharlieGreenman commented 8 years ago

This commit allows one to add a className, and/or id, to the tag similar to how one would do so in React.

<Surface className='allow-handle-click' id='canvasGrid'> </Surface>

tuxracer commented 8 years ago

Thanks! Please also add these to propTypes

tuxracer commented 8 years ago

Fixed by #151