Skip to content

Commit

Permalink
chore(tray): fix story to work with interaction add on
Browse files Browse the repository at this point in the history
  • Loading branch information
mlogsdon18 committed Aug 29, 2023
1 parent 637b094 commit 1ef04a7
Showing 1 changed file with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions components/tray/stories/tray.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,15 @@ export default {
type: { name: "boolean" },
table: { disable: true },
},
control: "boolean",
heading: {
name: "Heading",
type: { name: "string" },
table: {
type: { summary: "string" },
category: "Content",
},
control: "text",
},
},
args: {
rootClass: "spectrum-Tray",
Expand All @@ -35,25 +43,13 @@ export default {
};

export const Default = Template.bind({});
Default.argTypes = {
heading: {
name: "Heading",
type: { name: "string" },
table: {
type: { summary: "string" },
category: "Content",
},
control: "text",
},
};
Default.args = {
heading: "Tray Dialog",
content: [
{
template: Dialog,
() => Dialog({
heading: "New Messages",
content: "You have 5 new messages!",
content: ["You have 5 new messages!"],
isDismissable: false,
},
})
],
};

0 comments on commit 1ef04a7

Please sign in to comment.