Skip to content

Add a class name to the generated svg element to target them in css #7

Open
@gubug

Description

@gubug

Is it possible to add a class name, eg. "bootstrap-icon" or "bicon", to the generated svg element ?
maybe also a kebab case version of the icon name

the idea is to target the icons easily with css in order to correct alignment with text for example

<svg width="1em" height="1em" class="bicon bicon-bookmark" viewBox="0 0 16 16" fill="currentColor" role="img" focusable="false">...</svg>

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions