# Icon

A Phosphor icon rendered as its own component, and a raw SVG file drawn inline.

Section: Foundations / Icons
Page: https://ui.heyramzi.com/components/icon
Import path: `@heyramzi/ui/components/svg`

## Import

```ts
import { Svg } from "@heyramzi/ui/components/svg";
```

## Demo

```svelte
<script lang="ts">
	import { Svg } from "@heyramzi/ui/components/svg";
	import { Bell, Calendar, ChatCircle, Gear } from "phosphor-svelte";
	import mark from "#lib/demos/icon-mark.svg?raw";

	const weights = ["thin", "light", "regular", "bold", "fill", "duotone"] as const;
</script>

<div class="flex flex-col items-center gap-6">
	<div class="flex items-end gap-4 text-foreground">
		{#each [16, 20, 24, 32] as size (size)}<Calendar aria-hidden="true" {size} />{/each}
	</div>
	<div class="flex gap-4 text-muted-foreground">
		{#each weights as weight (weight)}<Bell aria-hidden="true" size={28} {weight} />{/each}
	</div>
	<div class="flex items-center gap-4">
		<ChatCircle aria-hidden="true" size={24} weight="duotone" class="text-brand" />
		<Gear aria-hidden="true" size={24} class="text-muted-foreground" />
		<Svg src={mark} class="size-7 text-brand" />
	</div>
</div>
```

## API

| Prop | Type | Default | Notes |
| --- | --- | --- | --- |
| `src` | `string` |  | required |
| `class` | `string` | `""` |  |
