feat(navbar): navbar link icon item (#781)

* chore: extract link code to a partial

* feat(navbar): item icon

* chore: generate

* docs: add configuration

* review

Co-authored-by: Xin <5097752+imfing@users.noreply.github.com>

* chore: generate

* chore: add examples

* chore: showcase

---------

Co-authored-by: Xin <5097752+imfing@users.noreply.github.com>
This commit is contained in:
Ludovic Fernandez
2025-08-24 23:45:10 +02:00
committed by GitHub
parent 546bcc2e26
commit fee0481a6c
6 changed files with 98 additions and 56 deletions

View File

@@ -58,20 +58,27 @@ There are different types of menu items:
params:
type: search
```
4. Icon
4. Icon Only
```yaml
- name: GitHub
params:
icon: github
```
5. Theme Toggle
5. Link with Icon
```yaml
- name: Blog
params:
type: link
icon: rss
```
6. Theme Toggle
```yaml
- name: Theme Toggle
params:
type: theme-toggle
label: true # optional, default is false
```
6. Language Switcher
7. Language Switcher
```yaml
- name: Language Switcher
params: