Menu

Astro

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

Tabler Icons for Astro

Installation

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

Or download it from GitHub.

How to use

Each icon is an Astro component, and the package ships as ES modules, so only the icons you import end up in the bundle.

---
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