REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 2.80 KB
Close
//proc/thread-self/root/home/byroehnu/.trash/node_modules11/@adminjs/design-system/src/atoms/table/table.tsx
Text
Base64
import { layout, LayoutProps } from 'styled-system' import { styled } from '@styled-components' import { cssClass } from '../../utils/css-class.js' /** * @classdesc * * <img src="components/table.png" /> * * Main Table wrapper. Along with _TableRow_, _TableCell_, _TableCaption_, * _TableHead_ and _TableBody_ gives you the powerful tool for building tables. * * ### Related Components * * - _Table_: {@link LayoutProps} & standard table html props * - _TableBody_: standard tbody html props * - _TableCell_: {@link SpaceProps} & {@link ColorProps} & standard td html props * - _TableHead_: standard thead html props * - _TableRow_: standard tr html props * * ### Usage * * ```javascript * import { * Table, * TableRow, * TableCell, * TableCaption, * TableHead, * TableBody, * } from '@adminjs/design-system' * ``` * * @component * @hideconstructor * @subcategory Atoms * @see {@link https://storybook.adminjs.co/?path=/story/designsystem-atoms-table--default Storybook} * @example * return ( * <Box pt="x4"> * <Table> * <TableCaption> * <Text as="span">Monthly savings</Text> * <Button variant="text" size="sm"> * <Icon icon="Trash" /> * Remove * </Button> * </TableCaption> * <TableHead> * <TableRow> * <TableCell><CheckBox /></TableCell> * <TableCell> * <Link href="#"> * Name * <Icon icon="ChevronUp" /> * </Link> * </TableCell> * <TableCell> * <Link href="#"> * Last * <Icon icon="ChevronDown" /> * </Link> * </TableCell> * <TableCell>Surname</TableCell> * <TableCell>Gender</TableCell> * <TableCell>Age</TableCell> * </TableRow> * </TableHead> * <TableBody> * <TableRow> * <TableCell><CheckBox /></TableCell> * <TableCell>Value 1</TableCell> * <TableCell>Value 2</TableCell> * <TableCell>Value 2</TableCell> * <TableCell>Value 2</TableCell> * <TableCell>Value 2</TableCell> * </TableRow> * <TableRow> * <TableCell><CheckBox /></TableCell> * <TableCell>Value 1</TableCell> * <TableCell>Value 2</TableCell> * <TableCell>Value 2</TableCell> * <TableCell>Value 2</TableCell> * <TableCell>Value 2</TableCell> * </TableRow> * </TableBody> * </Table> * </Box> * ) * @section design-system */ const Table = styled.table<LayoutProps>` position: relative; font-family: ${({ theme }) => theme.font}; color: ${({ theme }) => theme.colors.text}; border-left: 1px solid ${({ theme }) => theme.colors.border}; border-right: 1px solid ${({ theme }) => theme.colors.border}; ${layout}; ` Table.displayName = 'Table' Table.defaultProps = { width: 1, className: cssClass('Table'), } export default Table
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 8
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
index.ts
331 B
lrw-r--r--
2026-02-28 00:31:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
table-body.tsx
296 B
lrw-r--r--
2026-02-28 00:32:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
table-caption.tsx
1002 B
lrw-r--r--
2026-02-28 00:32:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
table-cell.tsx
887 B
lrw-r--r--
2026-02-28 00:32:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
table-head.tsx
617 B
lrw-r--r--
2026-02-28 00:32:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
table-row.tsx
477 B
lrw-r--r--
2026-02-28 00:32:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
table.stories.tsx
2.05 KB
lrw-r--r--
2026-02-28 00:32:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
table.tsx
2.80 KB
lrw-r--r--
2026-02-28 00:32:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).