
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@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 3,498 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
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.