import React from 'react'; import type { Meta, StoryObj } from '@storybook/react'; import { RippleButtonProps, RippleButton } from './index'; const meta: Meta = { component: RippleButton, title: 'atoms/RippleButton', argTypes: { label: { control: 'text' }, loading: { control: 'boolean' }, style: { control: 'object' }, family: { control: 'text' }, border: { control: 'text' }, height: { control: 'text' }, disabled: { control: 'boolean' }, standard: { control: 'boolean' }, active: { control: 'text' }, type: { control: 'text' }, widthButton: { control: 'text' }, bgColor: { control: 'text' }, color: { control: 'text' }, margin: { control: 'text' }, padding: { control: 'text' }, radius: { control: 'text' }, } }; export default meta; type Story = StoryObj; export const Example: Story = (args = {}) => Example.args = { onClick: () => { console.log('Button clicked!'); }, loading: false, style: {}, family: 'PFont-Light', disabled: false, standard: false, active: '', type: 'button', widthButton: '100%', bgColor: '', color: '', margin: '', padding: '', radius: '', children: Click Me }; export const disableExample: Story = (args = {}) => disableExample.args = { onClick: () => { console.log('Button clicked!'); }, loading: false, style: {}, family: 'PFont-Light', disabled: true, standard: false, active: '', type: 'button', widthButton: '100%', bgColor: '', color: '', margin: '', padding: '', radius: '', children: Click Me }; export const loadingExample: Story = (args = {}) => loadingExample.args = { onClick: () => { alert('Button clicked!'); }, loading: true, style: {}, family: 'PFont-Light', disabled: false, standard: false, active: '', type: 'button', widthButton: '100%', bgColor: '', color: '', margin: '', padding: '', radius: '', children: Click Me };