react-cellblock icon indicating copy to clipboard operation
react-cellblock copied to clipboard

simple inline styles

Open athanclark opened this issue 9 years ago • 2 comments

Hi there, I really like the feel this library gives me for designing grids, but I'd like more control over each generated element. I really like using inline styles for react components - it keeps the styling tightly coupled with the view, which I think is a good thing (for my use case at least). Would you be willing to give this freedom? If not, would you consider a height-based system? I'm not sure if you'd need to duplicate all of your width-based work in this other dimension (possibly squaring the work you need to do :P) or if we could simply hard-code some kind of fixed height. Either way, I think it would be useful.

athanclark avatar Feb 22 '16 10:02 athanclark

After using the build in a private registry, I can confirm that this works as expected :)

athanclark avatar Feb 22 '16 11:02 athanclark

Thanks for adding support for inline styles! I think that makes perfect sense. As for the height ideas, I am curious to know more what you are thinking about that. My instinct was that most people who would like this grid wouldn't be trying to control height that much (but it sounds like I may have missed the mark a bit).

Also, I think we should add unit tests to make sure the styles get passed through, just to make sure future changes don't remove your work. Would you be willing to add the tests? or should I take a look?

skiano avatar Feb 22 '16 14:02 skiano