A set of over 6000 free MIT-licensed high-quality SVG icons for you to use in your web projects.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

39 lines
915 B

---
title: Tabler Icons for Astro
---
![](https://raw.githubusercontent.com/tabler/tabler-icons/main/.github/packages/og-package-astro.png)
## Installation
<TabsPackage name="@tabler/icons-astro" />
or just [download from GitHub](https://github.com/tabler/tabler-icons/releases).
## How to use
It's built with ES modules so it's completely tree-shakable. Each icon can be imported as an Astro component.
```astro
---
import { IconArrowRight } from '@tabler/icons-astro';
---
<IconArrowRight />
```
You can pass additional props to adjust the icon.
```astro
<IconArrowRight color="red" size={48} />
```
Any valid SVG attribute is forwarded to the rendered `<svg>` element.
### Props
| name | type | default |
| ------------- | -------- | ------------ |
| `size` | _Number_ | 24 |
| `color` | _String_ | currentColor |
| `stroke` | _Number_ | 2 |