import { DemoStory } from '../demo/demo-types'; import { ModalWindow } from './modal'; import { Button, ButtonSize } from './button'; export const modalDemo: DemoStory = { id: 'modal-demo', text: 'Modal Window Demo', args: { title: 'Example Modal', noMoving: true, noModal: false, contentMinWidth: '300px', }, argTypes: { title: { control: 'text', description: 'Title of the modal' }, noMoving: { control: 'boolean', description: 'Disable dragging?' }, noModal: { control: 'boolean', description: "If true, it won't block background interaction" }, contentMinWidth: { control: 'text', description: 'Minimum width of modal' }, }, render: (args) => { return (
); }, code: `import { ModalWindow } from 'lupine.components/components/modal'; ModalWindow.show({ title: 'Example Modal', children:
This is the modal content!
, buttons: ['Cancel', 'Confirm'], handleClicked: (ind, close) => { console.log('Clicked button:', ind); close(); }, }); `, };