Icon¶
- class bootlace.icon.Icon(name: str, svg: ~bootlace.util.Tag = Tag(tag=<class 'dominate.svg.svg'>, classes={'align-self-center', 'bi-inline', 'me-1', 'bi', 'pe-none'}, attributes={'role': 'img', 'fill': 'currentColor', 'width': '16', 'height': '16'}), use: ~bootlace.util.Tag = Tag(tag=<class 'dominate.svg.use'>, classes=set(), attributes={}))[source]¶
Bases:
objectA Bootstrap icon
This class supports the
as_tag()protocol to display itself.Attributes Summary
Endpoint name for getting the Bootstrap Icon SVG file
Name of the icon
The URL for the SVG source for the icon
Methods Summary
__tag__()Attributes Documentation
- endpoint: ClassVar[Endpoint] = Endpoint(bootlace.static, , KeywordArguments({'filename': 'icons/bootstrap-icons.svg'}))¶
Endpoint name for getting the Bootstrap Icon SVG file
- name: str¶
Name of the icon
- url¶
The URL for the SVG source for the icon
Methods Documentation