Title element #1543
Unanswered
davevilela
asked this question in
Q&A
Title element
#1543
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
I'm trying to achieve the following feature:
I want to force the document to have an H1 title as the first Element, but I also want to display a custom element that has some buttons like the image below:
Example:
Proof of concept
I tried implementing a custom element, but with this approach I would allow the user to copy and paste this same element, and that's not the behaviour I expect.
I ended up creating a HOC that will only render for the first Node of my document, combined with
withStyledPlaceHolders
to enforce layout on my page.And for the hoc:
I'm not certain that this is the best way to implement this feature, though...
Can anyone tell me if you've implemented something like this?
Beta Was this translation helpful? Give feedback.
All reactions