Component cleanup

This commit is contained in:
adilallo committed 2026-04-29 07:20:16 -06:00
1 parent 252848eba9
commit e6127f1a3f
267 files changed
+2087 -2196

No files matched your search

+42
View File
@@ -0,0 +1,42 @@
import ModalHeader from "../../app/components/modals/ModalHeader";
export default {
title: "Components/Modals/ModalHeader",
component: ModalHeader,
parameters: {
layout: "fullscreen",
},
argTypes: {
showCloseButton: {
control: "boolean",
description: "Whether to render the close button on the left",
},
showMoreOptionsButton: {
control: "boolean",
description: "Whether to render the more-options button on the right",
},
onClose: { action: "close-clicked" },
onMoreOptions: { action: "more-options-clicked" },
},
};
export const Default = {
args: {
showCloseButton: true,
showMoreOptionsButton: true,
},
};
export const CloseOnly = {
args: {
showCloseButton: true,
showMoreOptionsButton: false,
},
};
export const MoreOptionsOnly = {
args: {
showCloseButton: false,
showMoreOptionsButton: true,
},
};