Astro
The official Astro integration for Tabler Icons. Import any icon as a component in an Astro page.
![]()
Installation
npm install @tabler/icons-astroyarn add @tabler/icons-astropnpm install @tabler/icons-astrobun install @tabler/icons-astroor just download from Github.
How to use
It's built with ESmodules so it's completely tree-shakable. Each icon can be imported as an Astro component.
---
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.
<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 |
