import type { Meta, StoryObj } from "@storybook/react"; import { BooleanInput } from "react-admin"; import { attributeName } from "../../../../ideExtension"; import { inputDecorators } from "../inputDecorators"; const meta = { title: "Inputs/BooleanInput", component: BooleanInput as any, parameters: { // layout: "centered", }, decorators: [...inputDecorators], args: { source: "active", }, argTypes: { label: { control: "text", }, }, } satisfies Meta; export default meta; type Story = StoryObj; export const Default: Story = { render: ({ source, ...props }) => { return ; }, }; export const CustomLabel: Story = { render: ({ label, source, ...props }) => { return ( ); }, args: { label: "User is active", }, };