Class Icon

All Implemented Interfaces:
ElementAttributeMethods<HTMLElement,Icon>, ElementClassListMethods<HTMLElement,Icon>, ElementConsumerMethods<HTMLElement,Icon>, ElementContainerMethods<HTMLElement,Icon>, ElementEventMethods<HTMLElement,Icon>, ElementIdMethods<HTMLElement,Icon>, ElementQueryMethods<HTMLElement>, HTMLElementAttributeMethods<HTMLElement,Icon>, HTMLElementDataMethods<HTMLElement,Icon>, HTMLElementStyleMethods<HTMLElement,Icon>, HTMLElementVisibilityMethods<HTMLElement,Icon>, IsElement<HTMLElement>, TypedBuilder<HTMLElement,Icon>, Component, ComponentProgress<HTMLElement,Icon>, Modifiers.Inline<HTMLElement,Icon>

An icon component is a container that allows for icons of varying dimensions, as well as spinners, to seamlessly replace each other without shifting surrounding content.

icon(check());
icon(filter())
        .size(IconSize.lg);
icon(exclamationTriangle())
        .inline()
        .status(warning);
See Also: