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

@waysnx/ui-layout

v0.1.3

Published

Comprehensive layout components from WaysNX - page structure, layout utilities, content organization, and navigation

Readme

@waysnx/ui-layout

Layout components from WaysNX - comprehensive set of layout utilities and components.

Installation

npm install @waysnx/ui-layout

This is a standalone package — no dependency on @waysnx/ui-core. Only requires react >= 18 as a peer dependency.

📖 Installation Guide — See all available packages and choose the right one for your needs.

Components

Page Structure

  • PageLayout - Main page container
  • SidebarLayout - Layout with collapsible sidebar
  • PageHeader - Page header section
  • PageContent - Main content area
  • Container - Responsive container with max-width
  • Section - Semantic section wrapper

Layout Utilities

  • Grid - CSS Grid layout
  • Row - Flexbox row container
  • Column - Flexbox column container
  • Stack - Vertical/horizontal stack with spacing
  • Divider - Visual separator
  • Spacer - Flexible spacing element

Content Organization

  • Card - Content card with optional header/footer
  • Panel - Content panel with title
  • Tabs - Tabbed interface (TabList, Tab, TabPanels, TabPanel)
  • Accordion - Collapsible sections (AccordionItem)
  • Collapsible - Single collapsible section
  • SplitLayout - Resizable split panes

Navigation Layout

  • Breadcrumb - Navigation breadcrumb trail
  • Stepper - Step-by-step progress indicator
  • PageTabs - Page-level tab navigation
  • Wizard - Multi-step form wizard with validation

Usage Examples

Basic Page Layout

import { PageLayout, SidebarLayout, PageHeader, PageContent } from '@waysnx/ui-layout';
import '@waysnx/ui-layout/dist/styles/index.css';

function App() {
  return (
    <PageLayout>
      <SidebarLayout
        collapsible
        sidebar={<div>Navigation Menu</div>}
      >
        <PageHeader>
          <h1>Dashboard</h1>
        </PageHeader>
        <PageContent>
          <p>Your content here</p>
        </PageContent>
      </SidebarLayout>
    </PageLayout>
  );
}

Grid Layout

import { Grid, Card } from '@waysnx/ui-layout';

function Dashboard() {
  return (
    <Grid columns={3} gap="1rem">
      <Card title="Card 1">Content</Card>
      <Card title="Card 2">Content</Card>
      <Card title="Card 3">Content</Card>
    </Grid>
  );
}

Tabs

import { TabList, Tab, TabPanels, TabPanel } from '@waysnx/ui-layout';
import { useState } from 'react';

function TabsExample() {
  const [activeTab, setActiveTab] = useState(0);
  
  return (
    <>
      <TabList activeTab={activeTab} onTabChange={setActiveTab}>
        <Tab>Tab 1</Tab>
        <Tab>Tab 2</Tab>
      </TabList>
      <TabPanels activeTab={activeTab}>
        <TabPanel>Content 1</TabPanel>
        <TabPanel>Content 2</TabPanel>
      </TabPanels>
    </>
  );
}

Breadcrumb

import { Breadcrumb } from '@waysnx/ui-layout';

function BreadcrumbExample() {
  return (
    <Breadcrumb
      items={[
        { label: 'Home', href: '/' },
        { label: 'Products', href: '/products' },
        { label: 'Details' }
      ]}
    />
  );
}

Stepper

import { Stepper } from '@waysnx/ui-layout';

function StepperExample() {
  return (
    <Stepper
      currentStep={1}
      steps={[
        { label: 'Step 1', description: 'First step' },
        { label: 'Step 2', description: 'Second step' },
        { label: 'Step 3', description: 'Final step' }
      ]}
    />
  );
}

Split Layout

import { SplitLayout } from '@waysnx/ui-layout';

function SplitExample() {
  return (
    <SplitLayout direction="horizontal" initialSize={30}>
      <div>Sidebar</div>
      <div>Main Content</div>
    </SplitLayout>
  );
}

Wizard

import { Wizard, WizardStep } from '@waysnx/ui-layout';

function WizardExample() {
  return (
    <Wizard onComplete={() => console.log('Completed!')}>
      <WizardStep
        id="step1"
        title="Account"
        description="Create your account"
        validate={() => {
          // Return true if valid, false otherwise
          return true;
        }}
      >
        <AccountForm />
      </WizardStep>
      <WizardStep
        id="step2"
        title="Profile"
        description="Setup your profile"
        canSkip
      >
        <ProfileForm />
      </WizardStep>
      <WizardStep
        id="step3"
        title="Review"
        description="Review and confirm"
      >
        <ReviewStep />
      </WizardStep>
    </Wizard>
  );
}

Styling

Import the CSS file in your app:

import '@waysnx/ui-layout/dist/styles/index.css';

All layout components use CSS variables with the --wx- prefix for easy theming:

:root {
  --wx-color-primary: #f19924;       /* Active tabs, stepper, wizard */
  --wx-color-primary-hover: #e08916;
  --wx-color-primary-contrast: #fff;
  --wx-color-text: #1e293b;
  --wx-color-text-muted: #64748b;
  --wx-color-surface: #ffffff;
  --wx-color-surface-alt: #f8fafc;
  --wx-color-border: #e2e8f0;
}

These are the same variables used across all WaysNX libraries. See the Theming Guide for the full list.

TypeScript Support

Full TypeScript support with exported types:

import type {
  PageLayoutProps,
  SidebarLayoutProps,
  GridProps,
  CardProps,
  TabListProps,
  AccordionProps,
  BreadcrumbProps,
  StepperProps,
  WizardProps,
  WizardStepProps,
  SplitLayoutProps,
} from '@waysnx/ui-layout';

Peer Dependencies

  • react >= 18

Links

License

MIT © WaysNX Technologies