react-html-email icon indicating copy to clipboard operation
react-html-email copied to clipboard

Multiple tds per tr

Open arasmussen opened this issue 8 years ago • 4 comments

Give your API components, I don't see a way to create multiple items in a single row. What if I'd like to have 2 boxes of equal size, side by side. Should I fall back to divs or just render raw tds with width="50%"?

arasmussen avatar May 31 '16 23:05 arasmussen

Hey @arasmussen,

I've been using raw tds since I've ran into the same problem. I agree there should be an ItemContainer component that allows you to render tds inside.

Roilan avatar Jun 01 '16 00:06 Roilan

Good point! Speaking in general, the components provided by this library are intended as a jumping off point -- if you need to get fancy, feel free to use them as an example and create your own <td> / <tr> nodes. That being said, I think moving to an <ItemContainer>/<Item> combo sounds good; we could bump to v2 for that change.

chromakode avatar Jul 19 '16 06:07 chromakode

Didn't see this until after submitting a pr, so I don't know if it aligns with what @arasmussen wanted. https://github.com/chromakode/react-html-email/pull/21

pwmckenna avatar Oct 03 '16 17:10 pwmckenna

Yes! I have a situation where I need 2 columns as well.

acomito avatar Oct 12 '16 18:10 acomito