numberInput.stories.js 533 B

12345678910111213141516171819202122232425
  1. import NumberInput from 'sentry/components/numberInput';
  2. export default {
  3. title: 'Components/Forms/Controls/Number Input',
  4. args: {
  5. defaultValue: 5,
  6. min: 0,
  7. max: 100,
  8. disabled: false,
  9. required: false,
  10. readOnly: false,
  11. monospace: false,
  12. size: 'md',
  13. },
  14. argTypes: {
  15. value: {type: 'number'},
  16. defaultValue: {type: 'number'},
  17. size: {
  18. options: ['md', 'sm', 'xs'],
  19. control: {type: 'inline-radio'},
  20. },
  21. },
  22. };
  23. export const _NumberInput = args => <NumberInput {...args} />;