← Cloudflare Realtime / realtime / realtimekit / ui-kit / api-reference / core
rtk-icon
An icon component which accepts an svg string and renders it.
Properties
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
icon |
string |
✅ | - | Icon |
size |
Size1 |
✅ | - | Size |
variant |
IconVariant |
✅ | - | Icon variant |
Usage Examples
Basic Usage
<rtk-icon></rtk-icon>With Properties
<rtk-icon
icon="example"
size="md"
variant="primary">
</rtk-icon><script>
const el = document.querySelector("rtk-icon");
</script>