jaspr icon indicating copy to clipboard operation
jaspr copied to clipboard

feat: Attributes at the <html> tag level

Open dinko7 opened this issue 1 year ago • 1 comments

Description

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.

dinko7 avatar May 25 '24 11:05 dinko7