
Research
Malicious fezbox npm Package Steals Browser Passwords from Cookies via Innovative QR Code Steganographic Technique
A malicious package uses a QR code as steganography in an innovative technique.
@tcn/ui-layout
Advanced tools
A comprehensive layout system that provides flexible, responsive layout components including stacks, grids, tables, and positioning utilities for building modern web applications.
@tcn/ui-layout
provides a complete set of layout primitives that make it easy to create complex, responsive layouts. The package includes stack components for one-dimensional layouts, grid systems for two-dimensional layouts, table components for data display, and utilities for positioning and spacing.
import { HStack, VStack, Spacer } from '@tcn/ui-layout';
function LayoutExample() {
return (
<VStack gap="16px" padding="24px">
<HStack gap="12px" vAlign="center">
<span>Label:</span>
<input type="text" />
<Spacer />
<button>Submit</button>
</HStack>
<VStack gap="8px">
<div>Item 1</div>
<div>Item 2</div>
<div>Item 3</div>
</VStack>
</VStack>
);
}
import { Grid } from '@tcn/ui-layout';
function GridExample() {
return (
<Grid
itemWidth={200}
itemHeight={150}
gap="16px"
columnAmount={3}
>
<div>Grid Item 1</div>
<div>Grid Item 2</div>
<div>Grid Item 3</div>
<div>Grid Item 4</div>
<div>Grid Item 5</div>
</Grid>
);
}
import { Table, Column } from '@tcn/ui-layout';
function DataTable() {
const data = [
{ id: 1, name: 'John Doe', email: 'john@example.com' },
{ id: 2, name: 'Jane Smith', email: 'jane@example.com' }
];
return (
<Table rows={data}>
<Column
width={100}
renderHeader={() => <strong>ID</strong>}
renderCell={(row) => row.id}
/>
<Column
width={200}
renderHeader={() => <strong>Name</strong>}
renderCell={(row) => row.name}
/>
<Column
width={300}
renderHeader={() => <strong>Email</strong>}
renderCell={(row) => row.email}
/>
</Table>
);
}
import { HStack, VStack } from '@tcn/ui-layout';
function ResponsiveLayout() {
return (
<HStack
gap="24px"
vAlign="start"
breakpointPixels={768} // Switch to vertical below 768px
>
<VStack gap="16px" width="300px">
<h3>Sidebar</h3>
<nav>Navigation items...</nav>
</VStack>
<VStack gap="16px" growWeight={1}>
<h1>Main Content</h1>
<p>Content goes here...</p>
</VStack>
</HStack>
);
}
All components automatically integrate with:
Choose @tcn/ui-layout
when you need:
Components support extensive customization through:
Apache-2.0
FAQs
TCN Layout Components
The npm package @tcn/ui-layout receives a total of 2,582 weekly downloads. As such, @tcn/ui-layout popularity was classified as popular.
We found that @tcn/ui-layout demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 open source maintainers 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.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.
Application Security
/Research
/Security News
Socket detected multiple compromised CrowdStrike npm packages, continuing the "Shai-Hulud" supply chain attack that has now impacted nearly 500 packages.