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

@equinor/fusion-react-layout

v0.1.0

Published

Fusion React Layout Component.

Downloads

46

Readme

@equinor/fusion-react-layout Published on npm

Component for handling layout in your application.

Use this package to compose app-level layouts with an optional sidebar and page sections for header, main content, and footer.

Storybook

Installation

npm install @equinor/fusion-react-layout

Or using pnpm:

pnpm install @equinor/fusion-react-layout

Components

Layout

Layout is the top-level container. It renders the application shell and accepts two child components:

  • Layout.Sidebar for sidebar content
  • Layout.Content for the main content area

If Layout.Sidebar is omitted, the layout automatically renders without a sidebar.

Layout.Sidebar

Layout.Sidebar places its children in the layout sidebar slot. Use it for navigation, filters, secondary actions, or supporting information.

Layout.Content

Layout.Content places its children in the main content slot. This is typically where you render pages, dashboards, or other primary content.

Page

Page is a page-level wrapper that can be rendered inside Layout.Content. It provides structured slots for common page sections:

  • Page.Header
  • Page.Main
  • Page.Footer

Page.Header

Use Page.Header for page titles, summaries, breadcrumbs, and top-level actions.

Page.Main

Use Page.Main for the primary page content.

Page.Footer

Use Page.Footer for secondary actions, metadata, or status information shown at the bottom of the page.

Usage

Import from the main entry point

import { Layout, Page } from '@equinor/fusion-react-layout';

Basic layout

Use Layout with Layout.Content when your view does not need a sidebar.

import { Layout } from '@equinor/fusion-react-layout';

export function Example() {
  return (
    <Layout>
      <Layout.Content>
        <h1>Main content</h1>
        <p>This area is used for the primary content of the application.</p>
      </Layout.Content>
    </Layout>
  );
}

Layout with sidebar

Add Layout.Sidebar when the page needs navigation or supporting content.

import { Layout } from '@equinor/fusion-react-layout';

export function Example() {
  return (
    <Layout>
      <Layout.Sidebar>
        <h2>Navigation</h2>
        <p>Sidebar content goes here.</p>
      </Layout.Sidebar>
      <Layout.Content>
        <h1>Main content</h1>
        <p>This is the primary application area.</p>
      </Layout.Content>
    </Layout>
  );
}

Page structure inside layout content

Render Page inside Layout.Content when you want to split a page into header, main, and footer sections.

import { Layout, Page } from '@equinor/fusion-react-layout';

export function Example() {
  return (
    <Layout>
      <Layout.Content>
        <Page>
          <Page.Header>
            <h1>Page title</h1>
            <p>Short description of the current page.</p>
          </Page.Header>
          <Page.Main>
            <p>This is the main page content.</p>
          </Page.Main>
          <Page.Footer>
            <p>Last updated just now.</p>
          </Page.Footer>
        </Page>
      </Layout.Content>
    </Layout>
  );
}

Full example with sidebar and page sections

import { Layout, Page } from '@equinor/fusion-react-layout';

export function Example() {
  return (
    <Layout>
      <Layout.Sidebar>
        <h2>Filters</h2>
        <p>Use the sidebar for contextual tools and navigation.</p>
      </Layout.Sidebar>
      <Layout.Content>
        <Page>
          <Page.Header>
            <h1>Projects</h1>
          </Page.Header>
          <Page.Main>
            <p>Project overview content.</p>
          </Page.Main>
          <Page.Footer>
            <p>Showing 24 results.</p>
          </Page.Footer>
        </Page>
      </Layout.Content>
    </Layout>
  );
}

Notes

  • Layout detects whether Layout.Sidebar is present and enables the sidebar slot automatically.
  • Page is optional. You can render any content directly inside Layout.Content.