import React from "react"; import { ComponentStory, ComponentMeta } from "@storybook/react"; import AlertDialog from "../components/AlertDiaglog/AlertDialog"; export default { title: "Example/AlertDialog", component: AlertDialog, } as ComponentMeta; const Template: ComponentStory = (args) => ( ); export const Primary = Template.bind({}); Primary.args = { trigger: , title: "This is the Dialog title", description: "The below options are passed in as an array of buttons, except the cancel button which is handled by boolean 'showCancel'", options: [], }; export const Secondary = Template.bind({}); Secondary.args = { trigger:

This p tag can also be a trigger

, title: "Dialog title", description: "Here is a description", options: [ , , ], showCancel: false, };