Skip to content

Nav Icon

@astryxdesign/core v0.7.1 · NavIcon

Usage ​

NavIcon is a circular icon container with an accent-colored background. Use it in navigation headers such as TopNavHeading and PageNavHeader to visually identify a section or application.

ts
import { NavIcon } from '@astryx-vue/core/NavItem'

Pass a CSS icon class through iconClass, or put the icon element itself in the default slot.

Anatomy

ElementDescription
ContainerCircular painted container for the supplied icon.
IconCaller-supplied visual content rendered inside the container.

Best practices ​

GuidancePractice
DoUse in navigation headers to provide a recognizable visual anchor for the section.
DoPass an Icon or similarly sized icon component to ensure proper proportions.
Don'tUse NavIcon for interactive purposes; it is a display-only container, not a button.

Examples ​

Common configurations, variations, and states.

Basic

Circular icon containers wrapping semantic icons. Use as logos or accent icons in navigation headers such as TopNavHeading.