Skip to content

Clarified description for iconSvg option in Navigation menus #241

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 29, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion plugin/registration.md
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ Key | Description
------------- | -------------
`label` | specifies the menu label localization string key, required.
`icon` | an icon name from the [Winter CMS icon collection](/docs/v1.2/ui/style/icon), optional.
`iconSvg` | an SVG icon to be used in place of the standard icon, the SVG icon should be a rectangle and can support colors, optional.
`iconSvg` | an image icon (svg, webp, png, jpg) to be used in place of the standard icon, the image icon should be a square and can support colors, optional. The value will be passed to `Url::asset()` before rendering.
`url` | the URL the menu item should point to (ex. `Backend::url('author/plugin/controller/action')`, required.
`counter` | a numeric value to output near the menu icon. The value should be a number or a callable returning a number, optional.
`counterLabel` | a string value to describe the numeric reference in counter, optional.
Expand Down