Skip to content

Commit 82bc4f8

Browse files
committed
feat: ActionMenuStories - add footer configuration story
1 parent c52cebb commit 82bc4f8

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed

src/stories/ActionMenu.stories.tsx

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ const options: ActionMenuProps['options'] = [
5555
label: 'Label 1',
5656
startIcon: {
5757
name: 'ic-cube',
58-
color: 'N800',
5958
},
6059
},
6160
],
@@ -68,7 +67,6 @@ const options: ActionMenuProps['options'] = [
6867
label: 'Group Label 1',
6968
startIcon: {
7069
name: 'ic-cube',
71-
color: 'N800',
7270
},
7371
isDisabled: true,
7472
},
@@ -93,11 +91,9 @@ const options: ActionMenuProps['options'] = [
9391
id: 'group-value-5',
9492
startIcon: {
9593
name: 'ic-cube',
96-
color: 'N800',
9794
},
9895
endIcon: {
9996
name: 'ic-cube',
100-
color: 'N800',
10197
},
10298
tooltipProps: {
10399
content: 'Tooltip content for value 5',
@@ -130,11 +126,9 @@ const options: ActionMenuProps['options'] = [
130126
id: 'value-5',
131127
startIcon: {
132128
name: 'ic-cube',
133-
color: 'N800',
134129
},
135130
endIcon: {
136131
name: 'ic-cube',
137-
color: 'N800',
138132
},
139133
tooltipProps: {
140134
content: 'Tooltip content for value 5',
@@ -179,3 +173,23 @@ export const WithIconButtonElement: Story = {
179173
},
180174
},
181175
}
176+
177+
export const WithFooterConfig: Story = {
178+
args: {
179+
id: 'action-menu-with-button',
180+
options,
181+
position: 'bottom',
182+
alignment: 'start',
183+
disableDescriptionEllipsis: false,
184+
onClick: action('option clicked'),
185+
isSearchable: true,
186+
buttonProps: {
187+
text: 'Open Action Menu',
188+
dataTestId: 'action-menu',
189+
},
190+
footerConfig: {
191+
type: 'text',
192+
value: 'This is footer',
193+
},
194+
},
195+
}

0 commit comments

Comments
 (0)