import { DemoStory } from '../demo/demo-types'; import { ButtonPushAnimation, ButtonPushAnimationProps, ButtonPushAnimationSize } from './button-push-animation'; import { HtmlVar } from 'lupine.components'; export const buttonPushAnimationDemo: DemoStory = { id: 'button-push-animation-demo', text: 'Button Push Animation Demo', args: { text: 'Push Me', size: ButtonPushAnimationSize.Medium, disabled: false, }, argTypes: { text: { control: 'text', description: 'The text displayed inside the button' }, size: { control: 'select', options: Object.values(ButtonPushAnimationSize), description: 'The size of the button', }, disabled: { control: 'boolean', description: 'Whether the button is disabled' }, }, render: (args: ButtonPushAnimationProps) => { const ButtonPushAnimationDemoContent = () => { const msg = new HtmlVar(''); const pushMsg = () => (msg.value = `Pushed at ${new Date().toLocaleTimeString()}`); return (

Button } onClick={pushMsg} />
{msg.node}
); }; return ; }, code: `import { ButtonPushAnimation, ButtonPushAnimationSize } from 'lupine.components/components/button-push-animation'; console.log('Pushed!')} /> `, };