Icon Component
open class IconComponent : Component<Unit> , EventProperties<SVGElement>
Content copied to clipboard
Class for configuring the appearance of an icon.
An IconDefinitionmust be provided in order to render an icon. This definition wraps the pure SVG markup together with additional properties like the display-name and the viewbox.
In order to provide a comfortable way to use the predefined icons from the dev.fritz2.styling.theme.Theme, use the IconComponent.fromTheme method.
Constructors
IconComponent
Link copied to clipboard
fun IconComponent()
Content copied to clipboard
Types
Functions
Properties
def
Link copied to clipboard
displayName
Link copied to clipboard
events
Link copied to clipboard
open override val events: ComponentProperty<WithEvents<SVGElement>.() -> Unit>
Content copied to clipboard
This property enables the client to access all events offered by the underlying HTML element.
svg
Link copied to clipboard
viewBox
Link copied to clipboard