import React from "react"; import {ComponentStory, ComponentMeta} from "@storybook/react"; import {button} from "@nextui-org/theme"; import {Notification, Camera} from "@nextui-org/shared-icons"; import {Spinner} from "@nextui-org/spinner"; import {Button, ButtonProps} from "../src"; export default { title: "General/Button", component: Button, argTypes: { variant: { control: { type: "select", options: ["solid", "bordered", "light", "flat", "shadow", "ghost"], }, }, color: { control: { type: "select", options: ["neutral", "primary", "secondary", "success", "warning", "danger"], }, }, radius: { control: { type: "select", options: ["none", "base", "sm", "md", "lg", "xl", "2xl", "3xl", "full"], }, }, size: { control: { type: "select", options: ["xs", "sm", "md", "lg", "xl"], }, }, fullWidth: { control: { type: "boolean", }, }, isDisabled: { control: { type: "boolean", }, }, disableAnimation: { control: { type: "boolean", }, }, }, } as ComponentMeta; const defaultProps = { children: "Button", ...button.defaultVariants, }; const Template: ComponentStory = (args: ButtonProps) =>