hypernova icon indicating copy to clipboard operation
hypernova copied to clipboard

Custom attributes on Hypernova DOM container

Open juanca opened this issue 5 years ago • 1 comments

Hello.

I am using Hypernova to deprecate simple ERB elements with React components. It's been pretty much a smooth ride except for 1 thing:

  • Can I add a custom class name to the Hypernova DOM container?

Since I am replacing snippets of ERB, I am introducing a new <div> with each render_react_component invocation. I would prefer to be able to style the Hypernova DIV instead of wrapping it in yet another DIV for the sake of layout.

Let me know if there is already a decision on this or whether I can make a PR or something.

juanca avatar Aug 28 '19 18:08 juanca

Hello. I am encountering this issue again. However, I think being able to add a style attribute would be more convenient for my current case: I want to use a CSS grid layout where each SSRed component is rendered as a named grid item.

juanca avatar Jul 05 '22 12:07 juanca