Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
@atlaskit/table
Advanced tools
WARNING!
This is an experimental package for exploration and validation of the foundations for the Atlassian Design System.
A table is used to display and organise complex data.
import Table from '@atlaskit/table';
Detailed docs and example usage can be found here.
import '@atlaskit/css-reset';
import Table, { Row, Cell, TBody, THead, HeadCell } from '@atlaskit/table';
import { presidents } from './data';
type President = (typeof presidents)[number];
/**
* Primary UI component for user interaction
*/
export const RenderProp = ({ isSelectable }) => {
return (
<Table isSelectable={isSelectable}>
<THead>
<HeadCell>Name</HeadCell>
<HeadCell>Party</HeadCell>
<HeadCell>Year</HeadCell>
</THead>
<TBody<President> rows={presidents}>
{(row) => (
<Row key={row.id} {...row}>
<Cell>{row.nm}</Cell>
<Cell>{row.pp}</Cell>
<Cell>{row.tm}</Cell>
</Row>
)}
</TBody>
</Table>
);
};
import '@atlaskit/css-reset';
import Table, { Row, Cell, TBody, THead, HeadCell } from '@atlaskit/table';
import { presidents } from './data';
/**
* Primary UI component for user interaction
*/
export const CompositionExample = ({ isSelectable }) => {
return (
<Table isSelectable={isSelectable}>
<THead>
<HeadCell>Name</HeadCell>
<HeadCell>Party</HeadCell>
<HeadCell>Year</HeadCell>
</THead>
<TBody>
{presidents.map((row) => (
<Row key={row.id}>
<Cell>{row.nm}</Cell>
<Cell>{row.pp}</Cell>
<Cell>{row.tm}</Cell>
</Row>
))}
</TBody>
</Table>
);
};
FAQs
A table is used to display data.
The npm package @atlaskit/table receives a total of 622 weekly downloads. As such, @atlaskit/table popularity was classified as not popular.
We found that @atlaskit/table demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.