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

v0.2.3

Published

This project, `@flownet/react-layout-routered-tabs`, provides a simple solution for integrating navigable tab components into a React application using React Router. The package leverages Material-UI components for a clean and responsive tabbed interface,

Downloads

5

Readme

@flownet/react-layout-routered-tabs

This project, @flownet/react-layout-routered-tabs, provides a simple solution for integrating navigable tab components into a React application using React Router. The package leverages Material-UI components for a clean and responsive tabbed interface, allowing users to easily navigate between different views within a web application.

How It Works

The package features a RouterTabs component that manages a series of tabs. Each tab links to a different route defined by the user, and renders its corresponding content seamlessly within the application. The application starts at the first tab if a specific route isn't provided initially. By using the built-in routing capabilities, it offers smooth navigation between the different sections, maintaining state across different views.

Key Features

  • Router-Integrated Tabs: Uses react-router-dom to provide tabs that act as navigational links.
  • Material-UI Components: Utilizes Material-UI's Paper, Tab, and Tabs components for a consistent and stylish UI.
  • Automatic Routing: Automatically redirects to the first tab if the initial route is undefined, ensuring users are always directed to valid content.
  • Flexible Tab Configuration: Allows any child component to define its route and display title.

Conclusion

The @flownet/react-layout-routered-tabs package offers a straightforward way to implement tabbed navigation using React Router and Material-UI. It simplifies the development process by integrating routing and UI components, allowing developers to focus on creating engaging content rather than handling navigation intricacies.

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

Overview

The @flownet/react-layout-routered-tabs library simplifies the creation of tabbed navigation within a React application utilizing the React Router. With its focus on ease-of-use, you can implement dynamic and navigable tabs that reflect changes in the URL hash, providing a seamless user experience. Notably, it integrates well with Material-UI components to offer visually appealing interfaces.

Installation

You can install the library using either npm or yarn:

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

or

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

Usage

Here's how you can incorporate @flownet/react-layout-routered-tabs into your React project:

  1. Import the Components: Start by importing the necessary components from the library.
  2. Define Your Routes: Use RouterTab to define each tab and its route.
  3. Render Tabs: Use RouterTabs to encapsulate the tab navigation and content rendering.

Example

Below is an example to illustrate setting up a basic tabbed interface:

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

function App() {
  return (
    <RouterTabs>
      <RouterTab path="/home" title="Home">
        <div>Welcome to the Home Page!</div>
      </RouterTab>
      <RouterTab path="/about" title="About">
        <div>About Us</div>
      </RouterTab>
      <RouterTab path="/contact" title="Contact">
        <div>Contact Information</div>
      </RouterTab>
    </RouterTabs>
  );
}

export default App;

Examples

  • Single Page with Tabs:

    import React from 'react';
    import { RouterTabs, RouterTab } from '@flownet/react-layout-routered-tabs';
    
    function Dashboard() {
      return (
        <RouterTabs>
          <RouterTab path="/overview" title="Overview">
            <div>Overview Content</div>
          </RouterTab>
          <RouterTab path="/reports" title="Reports">
            <div>Reports Content</div>
          </RouterTab>
        </RouterTabs>
      );
    }
    
    export default Dashboard;
  • Dynamic Tab Navigation:

    // Using the same import as above.
      
    function AdminPanel() {
      return (
        <RouterTabs>
          <RouterTab path="/users" title="Users">
            <div>User management</div>
          </RouterTab>
          <RouterTab path="/settings" title="Settings">
            <div>Settings panel</div>
          </RouterTab>
        </RouterTabs>
      );
    }
    
    export default AdminPanel;

Acknowledgement

This library may internally use Material-UI components for styling, and React Router for managing tabbed navigation. However, you only need to concern yourself with installing @flownet/react-layout-routered-tabs. These dependencies will be handled automatically.

Input Schema

$schema: https://json-schema.org/draft/2020-12/schema
type: object
properties:
  children:
    description: Elements representing individual tabs and their content.
    type: array
    items:
      type: object
      properties:
        props:
          type: object
          properties:
            title:
              description: Title to be displayed on the tab. Defaults to the path if not
                provided.
              type: string
            path:
              description: Path associated with the tab. Used for routing and displaying
                content.
              type: string
              format: uri
          required:
            - path
    minItems: 1
required:
  - children