Create KirbyTag.
This commit is contained in:
16
README.md
16
README.md
@@ -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. Defaults to `classic`.
|
||||
- **fastyle** - The Font Awesome style of icon. Defaults to `solid`.
|
||||
- **title** - A title to add to the icon. Useful for tooltips.
|
||||
|
||||
# License
|
||||
|
||||
Kirby Font Awesome is Copyright 2026, [Dreytac](mailto:dreytac@hobbyhome.net).
|
||||
|
||||
Reference in New Issue
Block a user