Skip to content

Commit

Permalink
ItemGroup: Improve stories to default to bordered and separated (#66191)
Browse files Browse the repository at this point in the history
* ItemGroup: Improve stories to default to bordered

* Inherit default story args

Co-authored-by: tyxla <[email protected]>
Co-authored-by: ciampo <[email protected]>
  • Loading branch information
3 people authored Oct 17, 2024
1 parent ab46764 commit 0a6cbb6
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions packages/components/src/item-group/stories/index.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ const Template: StoryFn< typeof ItemGroup > = ( props ) => (

export const Default: StoryFn< typeof ItemGroup > = Template.bind( {} );
Default.args = {
isBordered: true,
isSeparated: true,
children: (
[
{
Expand Down Expand Up @@ -67,6 +69,7 @@ export const NonClickableItems: StoryFn< typeof ItemGroup > = Template.bind(
{}
);
NonClickableItems.args = {
...Default.args,
children: (
[
{
Expand All @@ -83,6 +86,7 @@ NonClickableItems.args = {

export const CustomItemSize: StoryFn< typeof ItemGroup > = Template.bind( {} );
CustomItemSize.args = {
...Default.args,
children: (
[
{
Expand All @@ -98,9 +102,9 @@ CustomItemSize.args = {
).map( mapPropsToItem ),
};

export const WithBorder: StoryFn< typeof ItemGroup > = Template.bind( {} );
WithBorder.args = {
export const WithoutBorder: StoryFn< typeof ItemGroup > = Template.bind( {} );
WithoutBorder.args = {
...Default.args,
isBordered: true,
isSeparated: true,
isBordered: false,
isSeparated: false,
};

0 comments on commit 0a6cbb6

Please sign in to comment.