import type { Meta, StoryObj } from "@storybook/react"; import { maxValue, minValue, NumberInput } from "react-admin"; import { attributeName } from "../../../../ideExtension"; import { inputDecorators } from "../inputDecorators"; const meta = { title: "Inputs/NumberInput", component: NumberInput, parameters: { // layout: "centered", }, decorators: [...inputDecorators], args: { source: "day_offs", }, argTypes: { label: { control: "text", }, max: { control: "number", }, min: { control: "number", }, step: { control: "number", }, }, } satisfies Meta; export default meta; type Story = StoryObj; export const Default: Story = { render: ({ source, ...props }) => { return ; }, }; export const CustomLabel: Story = { render: ({ source, ...props }) => { return ; }, args: { label: "User day offs", }, }; export const MinAndMaxValidation: Story = { render: ({ source, ...props }) => { return ( ); }, args: { label: "User day offs", }, };