From 08baca1762656e98f442cd4f611e530c92ce30b5 Mon Sep 17 00:00:00 2001 From: Joseph Young Date: Sun, 10 Mar 2024 22:04:52 -0500 Subject: [PATCH] Update Menu stories --- src/components/Menu/Menu.stories.jsx | 79 ++++++++++++++++------------ 1 file changed, 44 insertions(+), 35 deletions(-) diff --git a/src/components/Menu/Menu.stories.jsx b/src/components/Menu/Menu.stories.jsx index 89e8efc..8cd5aee 100644 --- a/src/components/Menu/Menu.stories.jsx +++ b/src/components/Menu/Menu.stories.jsx @@ -1,4 +1,3 @@ -import { Fragment } from "react"; import Menu, { MenuControl, MenuContent, MenuItem, MenuDivider } from "./Menu"; import Avatar, { AvatarWithText, Content, Title, Subtitle } from "../Avatar/Avatar"; import Button from "../Button/Button"; @@ -11,68 +10,78 @@ export default { }, argTypes: { color: { - defaultValue: 'primary', - options: ['primary', 'secondary', 'tertiary', 'neutral'], - control: { type: 'inline-radio' } + defaultValue: "primary", + options: ["primary", "secondary", "tertiary", "neutral"], + control: { type: "inline-radio" }, }, radius: { - defaultValue: 'round', - options: ['round', 'sharp'], - control: { type: 'inline-radio' } + defaultValue: "round", + options: ["round", "sharp"], + control: { type: "inline-radio" }, }, alignment: { - defaultValue: 'center', - options: ['center', 'left', 'right'], - control: { type: 'inline-radio' } + defaultValue: "center", + options: ["center", "left", "right"], + control: { type: "inline-radio" }, }, - } + }, }; export const MenuStory = ({ ...args }) => ( - //
- - - Profile - Settings + + + + Profile + + + + Settings + - Logout + + + Logout + - //
); -MenuStory.storyName = "Menu" +MenuStory.storyName = "Menu"; export const MenuProfile = ({ name, subtitle, ...args }) => ( -
+
- - + + {name} {subtitle} - + - - Profile - Settings + + + + Profile + + + + Settings + - Logout + + + Logout +
@@ -82,4 +91,4 @@ MenuProfile.storyName = "Profile Menu"; MenuProfile.args = { name: "Just Yogurt", subtitle: "To brie or not to brie", -}; \ No newline at end of file +};