blazor-register-nav-item

Add a navigation item to Blazor NavMenu.razor within an AuthorizeView policy.

8|1|Updated Feb 5, 2018
One-click install
npx skills add https://github.com/umbrella-libraries/Umbrella --skill blazor-register-nav-item
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: blazor-register-nav-item
Source: https://github.com/umbrella-libraries/Umbrella/tree/main/.ai-shared/skills/blazor-register-nav-item
Command: npx skills add https://github.com/umbrella-libraries/Umbrella --skill blazor-register-nav-item

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Add a navigation item to the Blazor NavMenu.razor for a new feature inside the correct AuthorizeView policy block and section, following the existing navigation structure.

Core Features & Use Cases

  • Adds a new item inside the appropriate AuthorizeView block, respecting policy boundaries.
  • Maintains alphabetical order by label within its section.
  • Assists in selecting a suitable FontAwesome icon and ensuring the href points to the feature's index route.

Quick Start

Identify the policy used by the feature's index page, locate the corresponding AuthorizeView block, and insert a properly ordered nav item with the correct href and icon.

Frequently Asked Questions about blazor-register-nav-item

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add a Blazor nav item behind an AuthorizeView policy?

To add a Blazor nav item behind an AuthorizeView policy, insert it into the matching policy block within NavMenu.razor, ensuring the href targets the exact index route and visibility restricts to authorized users.

How do I keep Blazor NavMenu items in alphabetical order by label?

Keep Blazor NavMenu items in alphabetical order by inserting the new navigation entry into its correct sorted position within the existing section, maintaining the structural hierarchy of the Razor navigation component.

How do I restrict navigation visibility in Blazor using policy gates?

Restrict navigation visibility in Blazor using policy gates by wrapping the NavLink element inside an AuthorizeView block that matches the feature's authorization policy, limiting access to users who satisfy the specific policy requirements.

Where do I place a new Razor navigation link inside an existing NavMenu structure?

Place a new Razor navigation link inside the AuthorizeView block corresponding to the feature's policy within NavMenu.razor, ensuring it integrates seamlessly with the existing navigation structure and section hierarchy.

Can I assign a FontAwesome icon to a policy-gated Blazor navigation item?

Yes, you can assign a FontAwesome icon to a policy-gated Blazor navigation item by including the icon class within the new entry added to the AuthorizeView block, selecting an appropriate icon for the feature's index route.