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

@danny270793/layout

v0.0.2

Published

A layout component for React

Readme

@danny270793/layout

A React layout component library with iOS safe area support for building mobile-first applications with Capacitor.

Features

  • 🎯 Simple API - Easy-to-use layout components for headers, content, and footers
  • 📱 iOS Safe Areas - Built-in support for notches and home indicators
  • 🎨 Tailwind CSS - Styled with Tailwind for easy customization
  • 📦 TypeScript - Full type safety out of the box
  • Lightweight - Minimal dependencies, optimized bundle size

Installation

npm install @danny270793/layout

Usage

import { Layout } from '@danny270793/layout';

function App() {
  return (
    <Layout>
      <Layout.Header className="bg-blue-500">
        <h1>App Bar</h1>
      </Layout.Header>

      <Layout.Content className="bg-white">
        <h1>Main Content</h1>
        <p>Your app content goes here</p>
      </Layout.Content>

      <Layout.Footer className="bg-gray-800">
        <h1>Footer</h1>
      </Layout.Footer>
    </Layout>
  );
}

Components

Layout

The main container component that wraps your entire layout.

<Layout className="custom-class">{/* Your layout components */}</Layout>

Layout.Header

A sticky header component that respects iOS safe areas (notches).

<Layout.Header className="bg-blue-500">
  <h1>Header Content</h1>
</Layout.Header>

Features:

  • Sticky positioning at the top
  • Automatic iOS safe area padding (top, left, right)
  • Customizable with className prop

Layout.Content

The main content area of your application.

<Layout.Content className="p-4">
  <p>Your main content</p>
</Layout.Content>

Features:

  • Automatic iOS safe area padding (left, right)
  • Scrollable content area
  • Customizable with className prop

Layout.Footer

A sticky footer component that respects iOS safe areas (home indicator).

<Layout.Footer className="bg-gray-800">
  <nav>Footer Navigation</nav>
</Layout.Footer>

Features:

  • Sticky positioning at the bottom
  • Automatic iOS safe area padding (bottom, left, right)
  • Customizable with className prop

iOS Safe Area Classes

The library uses custom CSS classes for iOS safe area support:

  • ios-safe-top - Adds padding for top safe area (notch)
  • ios-safe-bottom - Adds padding for bottom safe area (home indicator)
  • ios-safe-left - Adds padding for left safe area
  • ios-safe-right - Adds padding for right safe area

Tailwind CSS Configuration

This library uses Tailwind CSS. Make sure you have Tailwind configured in your project:

npm install -D tailwindcss @tailwindcss/vite

TypeScript Support

This library is written in TypeScript and includes type definitions out of the box.

import type { ReactNode } from 'react';
import { Layout } from '@danny270793/layout';

interface AppProps {
  title: string;
}

function App({ title }: AppProps): ReactNode {
  return (
    <Layout>
      <Layout.Header>{title}</Layout.Header>
      <Layout.Content>Content</Layout.Content>
    </Layout>
  );
}

Development

Building

npm run build

Linting

npm run lint

Local Development

npm run dev

Peer Dependencies

  • React ^19.1.1

License

MIT

Repository

https://github.com/danny270793/layout

Author

Danny Vaca