> For the complete documentation index, see [llms.txt](https://sygnal.gitbook.io/sygnal-webflow-components/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sygnal.gitbook.io/sygnal-webflow-components/cc/sygnal-components/inline-svg-icon.md).

# Inline SVG Icon ✅

<figure><img src="/files/Zp8mwgyz64MA1KVLaQvy" alt=""><figcaption></figcaption></figure>

In Webflow, inline SVGs are generally rendered using an Embed element.&#x20;

In this approach, limiations exist;&#x20;

* The SVG cannot be stored in the CMS and bound to an Embed&#x20;
  * A rich text embed hack workaround can work but makes it difficult to work with the SVG&#x20;
* The SVG cannot be componentized and slotted conveniently&#x20;

## Features&#x20;

* Paste the SVG code directly into a property&#x20;
  * Data-bind it to any text field in the CMS, or a parent component, if you like&#x20;
* Choose from several pre-defined icon sizes for convenience&#x20;
* Color the icon easily through it's wrapper DIV and the SVG currentColor property&#x20;
  * That color can be stored in the CMS as a color field, and bound to the DIV's textcolor&#x20;

The component will automatically;&#x20;

* Verify that it's an SVG&#x20;
* Render the SVG content&#x20;

## Future&#x20;

When supported by Webflow, switch to an Embed property field type.&#x20;


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://sygnal.gitbook.io/sygnal-webflow-components/cc/sygnal-components/inline-svg-icon.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
