1
0
mirror of https://github.com/tabler/tabler.git synced 2026-08-05 01:44:41 +04:00

Add Astro library entry to documentation JSON

This commit is contained in:
codecalm
2026-07-28 00:38:29 +02:00
parent a9045d124b
commit 3277fa029f
5 changed files with 51 additions and 0 deletions
+42
View File
@@ -0,0 +1,42 @@
---
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'
![Tabler Icons for Astro](/img/icons/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 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 |