Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
@devtools-ds/navigation
Advanced tools
Readme
A navigation bar with tabs and icons, based on the tab navigation in browser inspectors.
npm i @devtools-ds/nav
# or with yarn
yarn add @devtools-ds/nav
This component is a combination of a few user interaction patterns. At it's core, the Navigation
is a top-level navigation for the current page. Inside of that, it contains Tabs
that follow the WAI-ARIA TabPanel Specification. For the tabs we use @reach/tabs to set up the correct attributes and keyboard interaction.
import { Navigation } from "@devtools-ds/navigation";
export const BasicUsage = () => {
return (
<Navigation>
<Navigation.Controls>
<Navigation.Left>
<Navigation.Button
icon={<SelectIcon inline />}
aria-label="Inspect page"
/>
<Navigation.Divider />
</Navigation.Left>
<Navigation.TabList>
<Navigation.Tab id="elements" icon={<InspectorIcon inline />}>
Elements
</Navigation.Tab>
<Navigation.Tab id="console" icon={<ConsoleIcon inline />}>
Console
</Navigation.Tab>
<Navigation.Tab id="debugger" icon={<DebuggerIcon inline />}>
Debugger
</Navigation.Tab>
<Navigation.Tab id="styles" icon={<StylesIcon inline />}>
Style Editor
</Navigation.Tab>
<Navigation.Tab id="performance" icon={<OdometerIcon inline />}>
Performance
</Navigation.Tab>
<Navigation.Tab id="memory" icon={<MemoryIcon inline />}>
Memory
</Navigation.Tab>
</Navigation.TabList>
<Navigation.Right>
<Navigation.Button
icon={<NewWindowIcon inline />}
aria-label="New Window"
/>
<Navigation.Divider />
<Navigation.Button
icon={<MoreInfoIcon inline />}
aria-label="More settings"
/>
<Navigation.Button
icon={<CloseIcon inline />}
aria-label="Close panel"
/>
</Navigation.Right>
</Navigation.Controls>
<Navigation.Panels>
<Navigation.Panel>Elements</Navigation.Panel>
<Navigation.Panel>Console</Navigation.Panel>
<Navigation.Panel>Debugger</Navigation.Panel>
<Navigation.Panel>Styles</Navigation.Panel>
<Navigation.Panel>Performance</Navigation.Panel>
<Navigation.Panel>Memory</Navigation.Panel>
</Navigation.Panels>
</Navigation>
);
};
Thanks goes to these wonderful people (emoji key):
Adam Dierkens 💻 📖 🎨 | Tyler Krupicka 📖 💻 💡 ⚠️ | Andrew Lisowski 💡 💻 |
This project follows the all-contributors specification. Contributions of any kind welcome!
FAQs
A navigation bar with tabs and icons, based on the tab navigation in browser inspectors.
The npm package @devtools-ds/navigation receives a total of 48 weekly downloads. As such, @devtools-ds/navigation popularity was classified as not popular.
We found that @devtools-ds/navigation demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.