Skip to main content

Nav

The Nav component provides a flexible navigation system for grouping links and actions. It supports standard navigation layouts, tab and pill styles, filled navigation items, justified widths, and Bootstrap-compatible utility props.

Import​

import { Nav } from "@promethey/bsui";

Note

Nav inherits all utility props supported by the Prime component, including layout, spacing, typography, colors, borders, sizing, positioning, and other Bootstrap utility APIs.

Basic usage​

Tabs​

Use view="tabs" to create tab-style navigation.

Pills​

Use view="pills" to create pill-style navigation.

Fill​

Use fill to expand navigation items to occupy available space.

Justified​

Use justified to make all navigation items equal width.

Use disabled to disable navigation items.

Custom navigation target​

Use the to prop to specify the link destination.

Utility props​

All utility props provided by Prime are supported.

API​

PropTypeDefaultDescription
childrenReactNode—Navigation content.
as"nav" | "ul""ul"HTML element used for rendering.
view"tabs" | "pills"nullNavigation appearance style.
fillbooleanfalseExpands items to fill available width.
justifiedbooleanfalseMakes items equal width.
classNamestring | object | arraynullAdditional CSS classes.
styleobjectnullInline styles.
PropTypeDefaultDescription
childrenReactNode—Navigation link content.
classNamestring | object | arraynullAdditional CSS classes.
styleobjectnullInline styles.
PropTypeDefaultDescription
childrenReactNode—Link content.
tostring"#"Navigation target URL.
activebooleanfalseMarks link as active.
disabledbooleanfalseDisables interaction.
classNamestring | objectnullAdditional CSS classes.
styleobjectnullInline styles.