Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions packages/react/src/Box/Box.stories.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.PlaygroundBox {
border-width: var(--borderWidth-thin);
border-style: solid;
border-color: var(--borderColor-default);
padding: var(--base-size-12);
}
16 changes: 8 additions & 8 deletions packages/react/src/Box/Box.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
import type {Meta, StoryFn} from '@storybook/react-vite'
import Box from './Box'
import {clsx} from 'clsx'
import classes from './Box.stories.module.css'

export default {
title: 'Deprecated/Components/Box',
component: Box,
} as Meta<typeof Box>

export const Default = () => <Box>Default Box</Box>
export const Default = () => <div>Default Box</div>

export const Playground: StoryFn<typeof Box> = args => <Box {...args}>Playground</Box>
export const Playground: StoryFn<typeof Box> = args => {
const as = args.as || 'div'
const Element = as as keyof JSX.IntrinsicElements
return <Element className={clsx(classes.PlaygroundBox)}>Playground</Element>
}

Playground.args = {
as: 'div',
sx: {
borderWidth: 1,
borderStyle: 'solid',
borderColor: 'border.default',
p: 3,
},
}

Playground.argTypes = {
Expand Down