Skip to content

Commit ac58a1f

Browse files
chore(statuslight): use story override patterns consistent with badge
1 parent b6f2019 commit ac58a1f

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

second-gen/packages/swc/components/status-light/stories/status-light.stories.ts

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -56,27 +56,15 @@ argTypes.variant = {
5656
// },
5757
// };
5858

59-
args['default-slot'] = {
60-
name: 'Default slot',
61-
type: { name: 'string', required: false },
62-
description: 'The text label of the status light.',
63-
control: { type: 'text' },
64-
table: {
65-
type: { summary: 'string' },
66-
defaultValue: { summary: '' },
67-
},
68-
};
59+
args['default-slot'] = 'Status light';
60+
args.size = 'm';
6961

7062
const meta: Meta = {
7163
title: 'Status light',
7264
component: 'swc-status-light',
7365
argTypes,
7466
parameters: {},
75-
args: {
76-
['default-slot']: 'Status light',
77-
variant: 'info',
78-
size: 'm',
79-
},
67+
args,
8068
render: (args) => template(args),
8169
tags: ['migrated'],
8270
};

0 commit comments

Comments
 (0)