![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
bpk-component-navigation-bar
Advanced tools
Backpack navigation bar component.
npm install bpk-component-navigation-bar --save-dev
import React from 'react';
import ArrowIcon from 'bpk-component-icon/sm/long-arrow-left';
import { withRtlSupport } from 'bpk-component-icon';
import BpkNavigationBar, { BpkNavigationBarIconButton, BpkNavigationBarButtonLink } from 'bpk-component-navigation-bar';
const ArrowIconWithRtl = withRtlSupport(ArrowIcon);
export default () => (
<BpkNavigationBar
title="Backpack"
leadingButton={
<BpkNavigationBarIconButton
onClick={() => {}}
icon={ArrowIconWithRtl}
label="back"
/>
}
trailingButton={
<BpkNavigationBarButtonLink onClick={() => {}}>Done</BpkNavigationBarButtonLink>
}
/>
)
Property | PropType | Required | Default Value |
---|---|---|---|
id | string | true | - |
title | node | true | - |
className | string | false | null |
leadingButton | element | false | null |
trailingButton | element | false | null |
sticky | bool | false | false |
navigationBarBackgroundColor
navigationBarTitleColor
import React from 'react';
import ArrowIcon from 'bpk-component-icon/sm/long-arrow-left';
import { BpkNavigationBarIconButton } from 'bpk-component-navigation-bar';
export default () => (
<BpkNavigationBarIconButton
onClick={() => {}}
icon={ArrowIcon}
label="back"
/>
)
Property | PropType | Required | Default Value |
---|---|---|---|
icon | func | true | - |
onClick | func | true | - |
label | string | true | - |
className | string | false | null |
navigationBarIconButtonColor
navigationBarIconButtonActiveColor
navigationBarIconButtonHoverColor
import React from 'react';
import { BpkNavigationBarButtonLink } from 'bpk-component-navigation-bar';
export default () => (
<BpkNavigationBarButtonLink onClick={() => {}}>
Done
</BpkNavigationBarButtonLink>
)
Property | PropType | Required | Default Value |
---|---|---|---|
children | node | true | - |
onClick | func | true | - |
className | string | false | null |
navigationBarButtonLinkColor
navigationBarButtonLinkActiveColor
navigationBarButtonLinkHoverColor
navigationBarButtonLinkVisitedColor
FAQs
Backpack nativation bar component.
The npm package bpk-component-navigation-bar receives a total of 0 weekly downloads. As such, bpk-component-navigation-bar popularity was classified as not popular.
We found that bpk-component-navigation-bar demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 open source maintainers collaborating on the project.
Did you know?
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.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.