import { type Meta, type StoryObj } from '@storybook/react' import { Button, type ButtonProps } from './index' // Ajusta la ruta según sea necesario const meta: Meta = { title: 'atoms/Button', component: Button, argTypes: { primary: { control: 'boolean' }, type: { control: 'text' } } } export default meta // Creación de las historias utilizando StoryObj export const Primary: StoryObj = { args: { primary: true, type: 'primary', children: 'Primary Button' } } export const Secondary: StoryObj = { args: { primary: false, type: 'secondary', children: 'Secondary Button' } }