Skip to content

[Proposal] Are you open to a top-level class: attribute? #39

@adrianthedev

Description

@adrianthedev

Hey 👋

Thanks for the wonderful gem.
I used inline_svg a lot and one thing that this is different from that (and from regular Rails tag helpers) is that the class option is nested inside the options ... option.

Would you be open to a PR that would add the class attribute top-level? That would make it more inline with all the Rails tag helpers.

Thanks!

# Present
heroicon "map-pin", options: {class: "h-4"}

# Proposed API
heroicon "map-pin", class: "h-4"

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