REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.24 KB
Close
//proc/thread-self/root/home/byroehnu/.trash/node_modules11/@adminjs/design-system/src/atoms/icon/icon.stories.tsx
Text
Base64
import { Meta, StoryFn, StoryObj } from '@storybook/react' import React from 'react' import * as FeatherIcons from 'react-feather' import { Box, Label } from '../index.js' import { Icon } from './icon.js' const icons = Object.keys(FeatherIcons).filter((name) => name !== 'default') export const Default: StoryObj = {} export const Icons: StoryFn = () => ( <Box display="grid" style={{ gridTemplateColumns: 'repeat(10, 1fr)', gap: 16 }}> {icons.map((key) => ( <Box key={key} flex alignItems="center" flexDirection="column"> <Label>{key}</Label> <Icon icon={key} size={24} /> </Box> ))} </Box> ) const meta: Meta<typeof Icon> = { title: 'DesignSystem/Atoms/Icon', component: Icon, args: { icon: icons[0], size: 48, rounded: false, spin: false, }, argTypes: { icon: { description: 'CamelCased name of an icon from https://www.npmjs.com/package/react-feather', control: { type: 'select' }, options: icons, }, size: { control: { type: 'number', min: 16, max: 48, step: 4 } }, color: { control: { type: 'color' } }, bg: { control: { type: 'color' } }, rounded: { control: { type: 'boolean' } }, spin: { control: { type: 'boolean' } }, }, } export default meta
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 3
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
icon.stories.tsx
1.24 KB
lrw-r--r--
2026-02-28 00:31:56
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
icon.tsx
3.76 KB
lrw-r--r--
2026-02-28 00:31:56
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.ts
27 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).