Create KirbyTag.

This commit is contained in:
2026-04-17 03:14:17 +10:00
parent 892dde104a
commit 2f5a639f18
2 changed files with 52 additions and 0 deletions

View File

@@ -2,6 +2,22 @@
A plugin for [Kirby](https://getkirby.com) to load the [Font Awesome](https://fontawesome.com) assets via the `getAssets()` hook of the [Kirby Library](https://git.hobbyhome.net/HobbyHome/kirby-library) plugin.
## KirbyTag
```
<?= kirbytag("fa", "icon", ["fastyle" => "regular"]) ?>
<i class="fa-classic fa-regular fa-icon"></i>
```
Supports the following attributes:
- **style** - Inline CSS style to apply to the icon.
- **class** - CSS classes to apply to the icon.
- **family** - The Font Awesome family of icon.
- **fastyle** - The Font Awesome style of icon.
- **title** - A title to add to the icon. Useful for tooltips.
# License
Kirby Font Awesome is Copyright 2026, [Dreytac](mailto:dreytac@hobbyhome.net).