
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@danny270793/layout
Advanced tools
A React layout component library with iOS safe area support for building mobile-first applications with Capacitor.
npm install @danny270793/layout
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>
);
}
The main container component that wraps your entire layout.
<Layout className="custom-class">{/* Your layout components */}</Layout>
A sticky header component that respects iOS safe areas (notches).
<Layout.Header className="bg-blue-500">
<h1>Header Content</h1>
</Layout.Header>
Features:
The main content area of your application.
<Layout.Content className="p-4">
<p>Your main content</p>
</Layout.Content>
Features:
A sticky footer component that respects iOS safe areas (home indicator).
<Layout.Footer className="bg-gray-800">
<nav>Footer Navigation</nav>
</Layout.Footer>
Features:
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 areaios-safe-right - Adds padding for right safe areaThis library uses Tailwind CSS. Make sure you have Tailwind configured in your project:
npm install -D tailwindcss @tailwindcss/vite
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>
);
}
npm run build
npm run lint
npm run dev
https://github.com/danny270793/layout
Danny Vaca
FAQs
A layout component for React
We found that @danny270793/layout demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.