# Astro

> The official Astro integration for Tabler Icons. Import any icon as a component in an Astro page.

Add Tabler Icons to Astro projects with the official tree-shakable package. Import any of over 5000 icons as native Astro components.

Source: https://docs.tabler.io/icons/libraries/astro

---

![Tabler Icons for Astro](/img/icons/package-astro.png)

## Installation

```shell
npm install @tabler/icons-astro
yarn add @tabler/icons-astro
pnpm install @tabler/icons-astro
bun install @tabler/icons-astro
```

or just [download from Github](https://github.com/tabler/tabler-icons/releases).

## How to use

It's built with ESmodules so it's completely tree-shakable. Each icon can be imported as an Astro component.

```astro
---
import { IconArrowDown } from '@tabler/icons-astro';
---

<IconArrowDown />
```

You can pass additional props to adjust the icon. Any valid SVG attribute is forwarded to the rendered `<svg>` element.

```astro
<IconArrowDown color="red" size={48} />
```

### Props

All icon components accept these props to control the size, color, and stroke width of the rendered SVG:

| name     | type     | default      |
| -------- | -------- | ------------ |
| `size`   | _Number_ | 24           |
| `color`  | _String_ | currentColor |
| `stroke` | _Number_ | 2            |
