# Navbar Navbar provides primary navigation and access to key areas of an application or website. It supports branding, navigation, and important user actions. **Category:** Components **Storybook:** https://doc.ux4g.gov.in/web/?path=/story/ux4g-components-navbar--introduction ## Variants documented in Storybook - Navbar Type: https://doc.ux4g.gov.in/web/?path=/story/ux4g-components-navbar--navbar-type - Navbar Pill: https://doc.ux4g.gov.in/web/?path=/story/ux4g-components-navbar--navbar-pill ## Framework setup ### HTML / CDN ```html ``` ### React ```bash npm install ux4g-web-components ``` ```jsx import 'ux4g-web-components/styles.css'; import 'ux4g-web-components/design-system'; ``` ### Angular Update `angular.json`: ```json { "styles": [ "node_modules/ux4g-web-components/styles/ux4g.css", "src/styles.css" ], "scripts": [ "node_modules/ux4g-web-components/dist/runtime/design-system.js" ] } ``` ## Code examples The snippets below are extracted from the Storybook canvas for Navbar. Each example shows the rendered HTML, the equivalent React JSX, and the Angular template markup. ### 1. Introduction — Introduction HTML: ```html
Navbar provides primary navigation and access to key areas of an application or website. It supports branding, navigation, and important user actions.
Visual demonstration of various Navbar variants including Default, Pill, and Extended styles.
Quickly copy layout and utility classes for Navbars.
|
Base Navbar
ux4g-navbar
|
|
Layout Wrapper
ux4g-navbar-wrap
|
|
Logo Height
ux4g-navbar-logo
|
|
Navigation List
ux4g-navbar-links
|
|
Right Aligned
ux4g-navbar-right
|
|
Pill Shaped
ux4g-radius-full
|
|
Vertical Divider
ux4g-divider-vertical
|
|
Horizontal Divider
ux4g-divider-horizontal
|
Navbar provides primary navigation and access to key areas of an application or website. It supports branding, navigation, and important user actions.
Visual demonstration of various Navbar variants including Default, Pill, and Extended styles.
Quickly copy layout and utility classes for Navbars.
|
Base Navbar
ux4g-navbar
|
|
Layout Wrapper
ux4g-navbar-wrap
|
|
Logo Height
ux4g-navbar-logo
|
|
Navigation List
ux4g-navbar-links
|
|
Right Aligned
ux4g-navbar-right
|
|
Pill Shaped
ux4g-radius-full
|
|
Vertical Divider
ux4g-divider-vertical
|
|
Horizontal Divider
ux4g-divider-horizontal
|
Navbar provides primary navigation and access to key areas of an application or website. It supports branding, navigation, and important user actions.
Visual demonstration of various Navbar variants including Default, Pill, and Extended styles.
Quickly copy layout and utility classes for Navbars.
|
Base Navbar
ux4g-navbar
|
|
Layout Wrapper
ux4g-navbar-wrap
|
|
Logo Height
ux4g-navbar-logo
|
|
Navigation List
ux4g-navbar-links
|
|
Right Aligned
ux4g-navbar-right
|
|
Pill Shaped
ux4g-radius-full
|
|
Vertical Divider
ux4g-divider-vertical
|
|
Horizontal Divider
ux4g-divider-horizontal
|