Version: 4.x
vime-icon
Renders and displays an SVG icon. The SVG markup can be passed in directly or it can be loaded via
a URL. It's preferrable to load a sprite via vime-icons
and reference the icon using the href
property.
#
Usage- HTML
- React
- Vue
- Svelte
- Stencil
- Angular
example.vue
example.svelte
example.html
#
PropertiesProperty | Attribute | Description | Type | Default |
---|---|---|---|---|
href | href | The URL to an SVG element or fragment to load. | string โฃ undefined | undefined |
#
SlotsSlot | Description |
---|---|
Used to pass in SVG markup to be drawn by the browser. |
#
CSS Custom PropertiesName | Description |
---|---|
--vm-icon-color | The color of the icon. |
--vm-icon-height | The height of the icon. |
--vm-icon-scale | The amount to scale the size of the icon up or down by. |
--vm-icon-width | The width of the icon. |
#
Dependencies#
Used by- vime-caption-control
- vime-fullscreen-control
- vime-menu-item
- vime-mute-control
- vime-pip-control
- vime-playback-control
- vime-settings-control
#
GraphBuilt with StencilJS