mirror of
https://github.com/tabler/tabler.git
synced 2026-08-05 01:44:41 +04:00
43 lines
1.2 KiB
Plaintext
43 lines
1.2 KiB
Plaintext
---
|
|
title: Astro
|
|
description: Tabler Icons library for Astro framework.
|
|
summary: Tabler Icons for Astro provides an optimized collection of icons specifically designed for use with Astro. These lightweight and scalable icons are easy to integrate into Astro-based projects.
|
|
layout: '@shared/layouts/DocsMdxLayout.astro'
|
|
---
|
|
|
|
import TabsPackage from '@shared/components/docs/TabsPackage.astro'
|
|
|
|

|
|
|
|
## 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 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
|
|
|
|
| name | type | default |
|
|
| -------- | -------- | ------------ |
|
|
| `size` | _Number_ | 24 |
|
|
| `color` | _String_ | currentColor |
|
|
| `stroke` | _Number_ | 2 |
|