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:
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@tabler/docs": minor
|
||||||
|
---
|
||||||
|
|
||||||
|
Added `Astro` icons library documentation page for the new `@tabler/icons-astro` package.
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 80 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 81 KiB |
@@ -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'
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## 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 |
|
||||||
@@ -383,6 +383,10 @@
|
|||||||
"title": "Libraries",
|
"title": "Libraries",
|
||||||
"url": "/icons/libraries/",
|
"url": "/icons/libraries/",
|
||||||
"children": [
|
"children": [
|
||||||
|
{
|
||||||
|
"title": "Astro",
|
||||||
|
"url": "/icons/libraries/astro/"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"title": "Preact",
|
"title": "Preact",
|
||||||
"url": "/icons/libraries/preact/"
|
"url": "/icons/libraries/preact/"
|
||||||
|
|||||||
Reference in New Issue
Block a user