The main color of the icon.
The background color of the icon.
The quaternary color of the icon.
The secondary color of the icon.
The tertiary color of the icon.
The height of the icon. If only height is given, the width will be adjusted. If width and height is set to 0, width and height can be set through style sheet. If neither is given, default values will be set. In pixels.
Can be set as a number or an object in form of a JSON string. The object can contain the keys 'default', 'xl', 'lg', 'md', 'sm', 'xs'. A hylo-breakpoint-listener has to be present. e.g. {"default": 18.5, "xs": 13, "sm": 13}
The main stroke color of the icon.
The secondary stroke color of the icon.
The width of the icon. If only width is given, the height will be adjusted. If width and height is set to 0, width and height can be set through style sheet. If neither is given, default values will be set. In pixels.
Can be set as a number or an object in form of a JSON string. The object can contain the keys 'default', 'xl', 'lg', 'md', 'sm', 'xs'. A hylo-breakpoint-listener has to be present. e.g. {"default": 18.5, "xs": 13, "sm": 13}
Generated using TypeDoc
An empty icon which can be used as blueprint for creating new ones.
If not needed, remove the properties "colorSecondary", ... , "stroke", "strokeSecondary" and the corresponding
Watch
functions and the function calls in componentDidLoad(). Have a look at the hylo-icon component to see informations about the function calls in componentDidLoad().
For color:
Sets the style "fill" to the given color. Classes which can be added to svg elements to set the fill color are:
If no class selector is given, it looks for ".hylo-icon-color" and if it doesn't find any match, it grabs all "path" except the ones which have the classes "hylo-icon-color-[secondary || tertiary || quaternary || background]". If a selector is given, only these elements are set.
For stroke:
Sets the style "stroke" to the given color. Classes which can be added to svg elements to set the fill color are:
If no class selector is given, it looks for ".hylo-icon-stroke-color" and if it doesn't find any match, it grabs all "*[stroke]" except the ones with class "hylo-icon-stroke-color-secondary". If a selector is given, only these elements are set.