npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@flownet/react-layout-routered-tabs-16

v0.2.3

Published

This project, `@flownet/react-layout-routered-tabs-16`, provides a simple way to integrate tabbed navigation in your React application using Material-UI components and React Router. It allows you to organize different sections of your web app within tab-l

Readme

@flownet/react-layout-routered-tabs-16

This project, @flownet/react-layout-routered-tabs-16, provides a simple way to integrate tabbed navigation in your React application using Material-UI components and React Router. It allows you to organize different sections of your web app within tab-like interfaces, which can be easily switched through, providing a clean and user-friendly navigation experience.

How It Works

The library leverages the functionality of Material-UI's Tabs and Tab components along with React Router's routing capabilities. It creates a tabbed navigation layout with each tab representing a different route in your application. When a user clicks on a tab, it navigates to the corresponding route, updating the view accordingly. The component ensures that the first tab route is automatically loaded when the application starts.

Key Features

  • Tabbed Navigation: Easily create a tabbed interface for routing different sections of your application.
  • Material-UI Integration: Uses Material-UI's Paper, Tabs, and Tab components for a consistent and visually appealing design.
  • Route Management: Integrates seamlessly with React Router, allowing each tab to link to a specific route.
  • Automatic Routing: Automatically navigates to the first tabbed route on initial load.

Conclusion

The @flownet/react-layout-routered-tabs-16 library provides a straightforward solution for implementing tabbed navigation in React applications. It combines Material-UI aesthetics with React Router's powerful routing capabilities to enhance user interface navigation without unnecessary complexities.

Developer Guide for @flownet/react-layout-routered-tabs-16

Overview

The @flownet/react-layout-routered-tabs-16 library provides a simple way to create tabbed interfaces in React applications, using a router for navigation between tabs. It allows developers to define tabs that align with URL routes, making navigation more intuitive and maintaining a clear structure between user interface elements and application logic.

Installation

To integrate @flownet/react-layout-routered-tabs-16 into your project, you can use either npm or yarn. Install the library using one of the following commands:

npm install @flownet/react-layout-routered-tabs-16

or

yarn add @flownet/react-layout-routered-tabs-16

Usage

To use the library, you will primarily work with two components: RouterTabs and RouterTab. These components help you create a tabbed interface where each tab corresponds to a different route in your application.

Here is a basic example on how to implement tabbed routing in your React application:

import React from 'react';
import { RouterTabs, RouterTab } from '@flownet/react-layout-routered-tabs-16';

function App() {
  return (
    <RouterTabs>
      <RouterTab path="/first">
        <div>First Tab Content</div>
      </RouterTab>
      <RouterTab path="/second">
        <div>Second Tab Content</div>
      </RouterTab>
      <RouterTab path="/third">
        <div>Third Tab Content</div>
      </RouterTab>
    </RouterTabs>
  );
}

export default App;

Examples

Example 1: Basic Setup

This example demonstrates a simple tabbed interface with three tabs, each linked to different routes.

import React from 'react';
import { RouterTabs, RouterTab } from '@flownet/react-layout-routered-tabs-16';

function BasicExample() {
  return (
    <RouterTabs>
      <RouterTab path="/tab1">
        <div>Content for Tab 1</div>
      </RouterTab>
      <RouterTab path="/tab2">
        <div>Content for Tab 2</div>
      </RouterTab>
      <RouterTab path="/tab3">
        <div>Content for Tab 3</div>
      </RouterTab>
    </RouterTabs>
  );
}

export default BasicExample;

Example 2: Initial Route Redirection

When users visit the root path, they can be automatically redirected to the first tab's route using the RouterTabs component like in the following example:

import React from 'react';
import { RouterTabs, RouterTab } from '@flownet/react-layout-routered-tabs-16';

function RedirectExample() {
  return (
    <RouterTabs>
      <RouterTab path="/dashboard">
        <div>Dashboard Content</div>
      </RouterTab>
      <RouterTab path="/settings">
        <div>Settings Content</div>
      </RouterTab>
      <RouterTab path="/profile">
        <div>Profile Content</div>
      </RouterTab>
    </RouterTabs>
  );
}

export default RedirectExample;

Acknowledgement

The @flownet/react-layout-routered-tabs-16 library is built by integrating React Router's capabilities with Material-UI's tab components, streamlining the creation of routable tab interfaces in React applications.

Input Schema

$schema: https://json-schema.org/draft/2020-12/schema
$type: object
properties:
  children:
    type: array
    description: A list of React elements, each representing a child tab with its own path.
    items:
      type: object
      properties:
        props:
          type: object
          properties:
            path:
              type: string
              description: The path corresponding to the tab.
required: []