Navigation

Navbar

@xui/navbar

The bar across the top of an application.

Install

pnpm add @xui/navbar

Add the barrel to a standalone component's imports:

import { XuiNavbarImports } from '@xui/navbar';

@Component({
  imports: [XuiNavbarImports],
  // …
})

Examples

Default

Loading preview…

API

XuiNavbar

directive[xuiNavbar]

The bar across the top of an application.

Variants

AxisOptionsDefaultfixedToToptruefalsefalse

Inputs

NameTypeDefaultclassClassValueThe user-defined classes. Merged last so they win over the variant classes.''fixedToTopbooleanStick to the top of the viewport as the page scrolls.false

XuiNavbarGroup

directive[xuiNavbarGroup]

A cluster of navbar items pushed to one side.

Variants

AxisOptionsDefaultalignstartendcenterstart

Inputs

NameTypeDefaultclassClassValueThe user-defined classes. Merged last so they win over the variant classes.''alignXuiNavbarGroupVariants['align']Which end of the navbar the group sits at. Groups are laid out in order, so a start and an end group split the bar between them.'start'

XuiNavbarHeading

directive[xuiNavbarHeading]

The application or section name, usually the first item in the bar.

Inputs

NameTypeDefaultclassClassValueThe user-defined classes. Merged last so they win over the base classes.''

XuiNavbarDivider

directive[xuiNavbarDivider]

A vertical rule between navbar groups.

Inputs

NameTypeDefaultclassClassValueThe user-defined classes. Merged last so they win over the base classes.''

Source

libs/ui/navbar/xui

xUI 2.0.0 — Apache 2.0 licensed. Built with Angular and Tailwind CSS.