Skip to content

Scoped Component CSS #671

Description

@Archmonger

Current Situation

Currently, there is no way to tie CSS to a specific component, such as React CSS Modules

Proposed Actions

There are several different ways of handling this problem. The method most applicable to IDOM would likely be similar to NextJS's styled JSX.

In the context of IDOM, it may look like this...

@component
def MyComponent():
    return html.div(
        html.style("...", scoped=True),
        html.button(),
    )

Work Items

  • Create a method of scoping CSS to a specific component definition

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority-2-moderateShould be resolved on a reasonable timeline.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions