Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@nextrap/element-navbar

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nextrap/element-navbar

Nextrap Navbar

latest
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

nextrap-element-navbar

Usage

To use the NxaNavbar component, import it in your HTML file:

<script type="module">
  import "./dist/navbar/nxa-navbar.js";
</script>

<style>
  .navbar-example {
    --nxa-header-background: #f6f6f6;
    --nxa-header-topbar-background: #ffffff;
    --nxa-navbar-logo-height: 60px;
  }
</style>

<nxa-navbar
  class="navbar-example"
  data-config='{"stickyOnScroll": true, "hideTopbarOnScroll": true}'
>
  <div class="nxa-topbar nxa-topbar--right" slot="topbar">
    <strong>Exlusive:</strong>
    Get 10 % off your first order!
  </div>
  <div class="nxa-navbar-logo" slot="left">
    <img src="" alt="My Awesome Logo" />
  </div>

  <nav class="nxa-navigation nxa-navigation--right" slot="center">
    <ul>
      <li>
        <a href="#">Home</a>
      </li>
      <li>
        <a href="#/services/">Services</a>
      </li>
      <li>
        <a href="#/about/">About</a>
      </li>
      <li>
        <a href="#/contact/">Contact</a>
      </li>
    </ul>
  </nav>
</nxa-navbar>

FAQs

Package last updated on 03 Apr 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts