Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Attributes at the <html> tag level #241

Open
dinko7 opened this issue May 25, 2024 · 1 comment
Open

feat: Attributes at the <html> tag level #241

dinko7 opened this issue May 25, 2024 · 1 comment
Labels

Comments

@dinko7
Copy link

dinko7 commented May 25, 2024

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 dinko7 added the feature label May 25, 2024
@schultek
Copy link
Owner

This is only for ssr, or do you want to change this value during client rendering?

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

No branches or pull requests

2 participants