You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my current setup, I'm only using Document.template with an index.html because there's currently no way to set attributes at <html> level. Here's what I'd want to have as an output:
<html data-theme="dark">.
A good solution would be to be able to provide a Map, similar to how Styles.raw allows for any attribute to be added to most Components. That way, anybody could manipulate these properties. A simple use case for this is changing the data-theme from dark to light.
The text was updated successfully, but these errors were encountered:
Description
In my current setup, I'm only using
Document.template
with anindex.html
because there's currently no way to set attributes at<html>
level. Here's what I'd want to have as an output:<html data-theme="dark">
.A good solution would be to be able to provide a
Map
, similar to howStyles.raw
allows for any attribute to be added to most Components. That way, anybody could manipulate these properties. A simple use case for this is changing thedata-theme
fromdark
tolight
.The text was updated successfully, but these errors were encountered: