Navbar

Build top-level navigation with grouped actions and responsive states.

Navbar

Default

Quickly generate a menu with the navbar component, as such the component is divided into 3 slots (left, center (default), right) with which you can determine the location of the elements, as sub components we have navbar-item and navbar-group

Code copied

Color

Change the component’s color with the color property or by directly adding one of the main Sax Design colors

if you want to change the text color to white you can do it with the property text-white

Code copied

Hide scroll

Add functionality to hide navbar when user scroll down and show when upload

Code copied

Group

You can add a list of elements within an item with the s-navbar-group component and within it add the s-navbar-item components

Code copied

Padding Scroll

Add the functionality that the component has a padding up and down that when it is lowered the scroll is eliminated giving a pleasant effect

Code copied

Square

Remove the border-radius property by making the component square

Code copied

Not line

Eliminates the active effect line of the component

Code copied

Types

interface NavItem {
  text?: string
  ariaLabel?: string
}

interface NavLink extends NavItem {
  path: string
  target?: string
}

type NavbarItem = NavLink

API

PROPS

PropertyTypeValuesDescriptiondefaultExampleMore
fixedBooleantruefalseDefines if the component is fixed on the screen.
shadowBooleantruefalseAdd a shadow to the component.primary
shadow-scrollBooleantruefalseAdd functionality to add shadow to component when scrollTop is more than 0.
hide-scrollBooleantruefalseAdd the functionality to hide and show the component based on whether the scroll is lowered or raised.
Usage
textWhiteBooleantruefalseChange the text color of items to white.
Usage
squareBooleantruefalseChange the border radius to 0 by making the component square.
Usage
padding-scrollBooleantruefalseDetermines if the component has padding and the user scrolling is removed making an effect.
Usage
not-lineBooleantruefalseDelete the active line in the component.
Usage
left-collapsedBooleantruefalseAdd the functionality that when the elements of this slot cannot be correctly they are visually removed.
Usage
center-collapsedBooleantruefalseAdd the functionality that when the elements of this slot cannot be correctly they are visually removed.
Usage
right-collapsedBooleantruefalseAdd the functionality that when the elements of this slot cannot be correctly they are visually removed.
Usage
target-scrollBooleantruefalseDetermines the element to which the scroll event will be requested.document
Usage
item:activeBooleantruefalseDetermines if the component is in active status.
Usage
item:toString, Objectvue-router RouteLocationRawUse vue-router to generate a new view based on the supplied string.
item:toString, Objectvue-router RouteLocationRawUse vue-router to generate a new view based on the supplied string.
No matching data

SLOTS

PropertyTypeValuesDescriptiondefaultExampleMore
defaultslotAdd the elements in the center of the component.
Usage
leftslotAdd the elements on the left side of the component.
Usage
rightslotAdd the elements on the right side of the component.
Usage
No matching data
Last Updated: 2026-08-17, 08:33:54