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: object

A Bootstrap icon

This class supports the as_tag() protocol to display itself.

Attributes Summary

endpoint

Endpoint name for getting the Bootstrap Icon SVG file

name

Name of the icon

svg

url

The URL for the SVG source for the icon

use

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

svg: Tag
url

The URL for the SVG source for the icon

use: Tag

Methods Documentation

__tag__() dom_tag[source]