REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.12 KB
Close
//proc/thread-self/root/home/byroehnu/.trash/node_modules11/@adminjs/design-system/src/atoms/box/box.stories.tsx
Text
Base64
import { Meta, StoryFn, StoryObj } from '@storybook/react' import React from 'react' import { Button, Header, Text } from '../index.js' import { Box, BoxProps } from './index.js' export const Default: StoryObj = { render: (props) => <Box {...props}>Box example</Box>, } const variants: BoxProps['variant'][] = ['card', 'container', 'grey', 'transparent', 'white'] export const simpleWhiteGrayWrapper: StoryFn = () => ( <Box variant="grey"> <Box variant="white"> <Text>This is the default wrapper in the application</Text> </Box> </Box> ) export const positioningButtons: StoryFn = () => ( <Box variant="grey"> <Box variant="white" flex flexDirection="row"> <Box flexGrow={1}> <Header.H3>Some header</Header.H3> </Box> <Box flexShrink={0}> <Button>Example Button On The Right</Button> </Box> </Box> </Box> ) const meta: Meta<typeof Box> = { title: 'DesignSystem/Atoms/Box', component: Box, parameters: { controls: { include: ['variant'], }, }, argTypes: { variant: { options: variants, control: { type: 'select' } }, }, } export default meta
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 5
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
box-props.doc.md
324 B
lrw-r--r--
2026-02-28 00:31:38
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
box.doc.md
1.60 KB
lrw-r--r--
2026-02-28 00:31:38
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
box.stories.tsx
1.12 KB
lrw-r--r--
2026-02-28 00:31:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
box.tsx
3.05 KB
lrw-r--r--
2026-02-28 00:31:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.ts
26 B
lrw-r--r--
2026-02-28 00:31:44
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).