Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Custom attributes on Hypernova DOM container #163

Open
juanca opened this issue Aug 28, 2019 · 1 comment
Open

Custom attributes on Hypernova DOM container #163

juanca opened this issue Aug 28, 2019 · 1 comment

Comments

@juanca
Copy link

juanca commented Aug 28, 2019

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
Copy link
Author

juanca commented Jul 5, 2022

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant