> ## Documentation Index
> Fetch the complete documentation index at: https://tonic.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Icons

## What Icons Are Included

* [Heroicons](https://heroicons.com) (`/app/assets/icons/heroicons`)

* [Tabler Icons](https://tabler.io/icons) (`/app/assets/icons/tabler`)

## Rendering An Icon

* We use the [inline\_svg](https://github.com/jamesmartin/inline_svg) gem.&#x20;

* To render an icon, use the following snippet and swap out the name of the file and the classes as necessary.

```erb theme={null}
<%= inline_svg_tag("/heroicons/icon-chevron-right.svg") %>
```

### Add Classes

Most commonly used to change the size or color.

```erb theme={null}
<%= inline_svg_tag("/heroicons/icon-chevron-right.svg", class: "w-5 text-indigo-500") %>
```

### FAQ

<Accordion title="Why use inline_svg instead of a normal image or asset tag?" defaultOpen={false}>
  Normal image tags don't allow us to specify a class that gets add to the svg element itself. Instead, they render an `<img>` that points to the svg, which is different to rendering the svg directly.
</Accordion>
