rtk-icon
An icon component which accepts an svg string and renders it.
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
icon | string | ✅ | - | Icon |
size | Size1 | ✅ | - | Size |
variant | IconVariant | ✅ | - | Icon variant |
<rtk-icon></rtk-icon><rtk-icon icon="example" size="md" variant="primary"></rtk-icon><script> const el = document.querySelector("rtk-icon");
</script>