# SVG Block

The SVG block allows you to add icons,  SVG images and inline SVG code snippets in an instant.

## Add

* Select required block.
* Click the "+" icon at the bottom of the Quick Inserter.
* Search for the SVG block.
* Click to add to page.

<figure><img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2FlXpwMyG5sWHNJxlvIzZH%2Fsvg%20add.jpg?alt=media&#x26;token=f7b8edfb-fdf2-4bd5-a8ab-8804e97f9ab9" alt=""><figcaption></figcaption></figure>

## Icon

The Icon property allows you to add an  unwrapped SVG Icon to your page. This is useful for one-off SVG icons.

* Select SVG block.
* In the Primary tab, set Type to Icon.

<figure><img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2FO0aKYArLVztBySdLhIo7%2Ficon%20tailwind.jpg?alt=media&#x26;token=fd7b2e2e-9268-4fed-8118-686c879979b9" alt=""><figcaption></figcaption></figure>

### Select Icon

* Click "Icon" to open the Icon library or search for required icon.

<figure><img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2F8YfCS4018V7wN6zYYMx9%2FChoose%20icon.jpg?alt=media&#x26;token=db9b5965-e0da-4529-ad68-d96438a4fc2c" alt=""><figcaption></figcaption></figure>

### Customise&#x20;

The Customise property allows you to modify your Icon as required including size, height, width, stroke as well as fill, stroke and text colours.

* Customise as required.

<figure><img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2FwL3yeIPpS7exrrkDGV2l%2Fcustomize%20icon.jpg?alt=media&#x26;token=ccb6893b-b2f8-4dff-a3a9-1dc52b833383" alt=""><figcaption></figcaption></figure>

## Image

The Image property allows you to add an SVG image to your page.&#x20;

{% hint style="info" %}
Imported images present a security risk. Although Cwicly sanitises them as well as possible, make sure you trust the source you import them from.
{% endhint %}

### Add

* Select SVG block.
* In the Primary tab, set Type to Image.

<figure><img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2Fj4s2sseDZoEUqZTdkApW%2Fimage%20role%20editor.jpg?alt=media&#x26;token=54549d6b-0bda-45f3-b451-a35470953636" alt=""><figcaption></figcaption></figure>

### SVG Uploads&#x20;

The SVG Uploads property enables you to upload SVG images to the media library.&#x20;

Cwicly sanitises SVGs but make sure you trust the source of the SVG before uploading it.

* Navigate to the Cwicly tab in the Dashboard.
* Open the Role Editor.
* In Miscellaneous, toggle SVG on to enable.

<figure><img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2FvqQA2qL2jpt5V7sZblJj%2Fsvg%20uploads.jpg?alt=media&#x26;token=8922497e-38ef-494d-a67f-285c41ba71d2" alt=""><figcaption></figcaption></figure>

### Set Source

The Source property allows you to set the source of the image, Static or Dynamic.

* Set source as required.

<figure><img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2FCuLXdburQ8qG0V8fK41h%2Fset%20image.jpg?alt=media&#x26;token=6a8f924c-84ee-448f-a2d7-79ef18d5a57c" alt=""><figcaption></figcaption></figure>

### Customise

The Customise property allows you to modify your Image as required including size, height, width, stroke as well as fill, stroke and text colours.

* Customise as required.

<figure><img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2FVUU3YWj4YsEdbcF4Nxwc%2Fcustomize%20image.jpg?alt=media&#x26;token=af1546cc-eaf5-4945-8106-d408c45d52dd" alt=""><figcaption></figcaption></figure>

## Inline

The Inline property allows you to add an SVG code snippet to your page.&#x20;

{% hint style="info" %}
Imported SVG snippets present a security risk. Although Cwicly sanitises them as well as possible, make sure you trust the source you import them from.
{% endhint %}

### Add

* Select SVG block.
* In the Primary tab, set Type to Inline.

<figure><img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2FXj1vwVQDjf6tnLNcu4pG%2Frole%20editor%20for%20inline.jpg?alt=media&#x26;token=530551c8-f4ca-4da8-a0c9-cff6f239b277" alt=""><figcaption></figcaption></figure>

### Inline SVG&#x20;

Allows you to add inline SVGs.&#x20;

{% hint style="info" %}
Cwicly sanitises SVGs but make sure you trust the source of the SVG before adding it to your content.
{% endhint %}

* Navigate to the Cwicly tab in the Dashboard.
* Open the Role Editor.
* In Miscellaneous, toggle Inline SVG to enable.

<figure><img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2FP8gpGSt4wvbAlFjpkDGk%2Finline%20svg%20role%20editor.jpg?alt=media&#x26;token=ff6ee8fe-bc1d-4609-bf0e-760cf52dc6dc" alt=""><figcaption></figcaption></figure>

### SVG

The SVG property allows you to paste an SVG code snippet.

* Find the SVG field.
* Paste required SVG snippet.

<figure><img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2FLLO1YLlRDVgjIAkhkXkX%2Fpaste%20snippet.jpg?alt=media&#x26;token=9a01bd5f-3ce0-4ddb-b234-0ec117fba106" alt=""><figcaption></figcaption></figure>

### Customise

The Customise property allows you to modify your SVG snippet as required including size, height, width, stroke as well as fill, stroke and text colours.

* Customise as required.

<figure><img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2FNyl6tg1fPXARjjcHlry6%2Fcustomize%20inline%20.jpg?alt=media&#x26;token=c65e1742-cd76-47e8-8964-934c77062fac" alt=""><figcaption></figcaption></figure>
