/* eslint-disable no-alert */ import React from 'react'; import { Button } from './Button'; import { Link } from '../Link/Link'; import { Text } from 'react-aria-components'; import { AddIcon } from '../icons/AddIcon'; import type { Meta, StoryObj } from '@storybook/react-vite'; const meta = { title: 'Basic/Button', component: Button, parameters: { layout: 'centered', }, tags: ['autodocs'], } satisfies Meta; export default meta; type Story = StoryObj; export const Default: Story = { render: (args: any) => , args: { onPress: () => alert('Hello world!'), }, }; export const Disabled: Story = { ...Default, args: { ...Default.args, isDisabled: true, }, }; export const WithStyle: Story = { render: (args: any) => ( ), args: { ...Default.args, }, }; export const Icon: Story = { render: (args: any) => ( ), args: { ...Default.args, }, }; export const IconAndText: Story = { render: (args: any) => ( ), args: { ...Default.args, }, }; export const AsLink: Story = { render: (args: any) => ( Plone.org ), args: { ...Default.args, }, };