import type { Meta, StoryObj } from '@storybook/react-vite';
import { InputNumber } from './input-number';
import { Label } from '../label/label';
const meta = {
title: 'Components/InputNumber',
component: InputNumber,
parameters: {
layout: 'centered',
docs: {
description: {
component:
'Numeric input with stepper controls. A plain `` has no formatting hook, silently accepts `e` and `+`, and steps inconsistently across browsers. This is a text input carrying `role="spinbutton"`, so the value is announced with its bounds while `formatter`/`parser` stay free to show currency or units. Clamping happens on commit, never mid-keystroke.',
},
},
},
tags: ['autodocs'],
decorators: [(Story) =>
],
} satisfies Meta;
export default meta;
type Story = StoryObj;
export const Default: Story = {
args: { defaultValue: 3, min: 0, max: 99 },
};
export const WithLabel: Story = {
render: (args) => (