Skip to content

Allow defining variants values with attributes or functions #5

@thiagomajesk

Description

@thiagomajesk

Right now, you can only do something like: variant :color, [blue: "text-blue-500"] and not variant :color, @text_colors because the macro is not expanding the module attribute. Would you be willing to support a similar syntax? This seems very helpful for cases where you want to share the variant definitions between similar components.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions