Skip to content

Commit af0d3b0

Browse files
committed
add new stories
1 parent c812dda commit af0d3b0

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

packages/@react-spectrum/s2/chromatic/ColorWheel.stories.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,14 @@ export const Example: StoryObj<typeof ColorWheel> = {
2929
defaultValue: 'hsl(30, 100%, 50%)'
3030
}
3131
};
32+
33+
export const InContainer: StoryObj<typeof ColorWheel> = {
34+
render: (args) => (
35+
<div style={{width: 600, border: '1px solid gray', padding: 16}}>
36+
<ColorWheel {...args} onChange={undefined} />
37+
</div>
38+
),
39+
args: {
40+
defaultValue: 'hsl(30, 100%, 50%)'
41+
}
42+
};

packages/@react-spectrum/s2/stories/ColorWheel.stories.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,14 @@ export const Example: Story = {
3939
defaultValue: 'hsl(30, 100%, 50%)'
4040
}
4141
};
42+
43+
export const InContainer: Story = {
44+
render: (args) => (
45+
<div style={{width: 600, border: '1px solid gray', padding: 16}}>
46+
<ColorWheel {...args} onChange={undefined} />
47+
</div>
48+
),
49+
args: {
50+
defaultValue: 'hsl(30, 100%, 50%)'
51+
}
52+
};

0 commit comments

Comments
 (0)