mirror of
https://github.com/tabler/tabler-icons.git
synced 2025-08-31 09:32:04 +02:00
Corrected example for additional props and added missing prop (#491)
This commit is contained in:
@@ -62,7 +62,7 @@ import { IconHeart } from '@tabler/icons-svelte';
|
|||||||
You can pass additional props to adjust the icon.
|
You can pass additional props to adjust the icon.
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<IconHeart size={48} strokeWidth={1} />
|
<IconHeart size={48} stroke={1} />
|
||||||
```
|
```
|
||||||
|
|
||||||
### Props
|
### Props
|
||||||
@@ -72,6 +72,7 @@ You can pass additional props to adjust the icon.
|
|||||||
| `size` | _Number_ | 24 |
|
| `size` | _Number_ | 24 |
|
||||||
| `color` | _String_ | currentColor |
|
| `color` | _String_ | currentColor |
|
||||||
| `stroke` | _Number_ | 2 |
|
| `stroke` | _Number_ | 2 |
|
||||||
|
| `class` | _String_ | |
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
@@ -85,4 +86,4 @@ Tabler Icons is licensed under the [MIT License](https://github.com/tabler/table
|
|||||||
|
|
||||||
## Sponsor Tabler
|
## Sponsor Tabler
|
||||||
|
|
||||||
<a href="https://github.com/sponsors/codecalm" target="_blank"><img src="https://github.com/tabler/tabler/raw/dev/src/static/sponsor-banner-readme.png?raw=true" alt="Sponsor Tabler" /></a>
|
<a href="https://github.com/sponsors/codecalm" target="_blank"><img src="https://github.com/tabler/tabler/raw/dev/src/static/sponsor-banner-readme.png?raw=true" alt="Sponsor Tabler" /></a>
|
Reference in New Issue
Block a user