Design system.
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 

50 linhas
906 B

  1. import * as React from 'react';
  2. import type { Meta } from '@storybook/react';
  3. import { TextControl } from '@tesseract-design/web-base';
  4. import { DateDropdown as Component, DateDropdownProps as Props } from '.';
  5. const meta: Meta<typeof Component> = {
  6. component: Component,
  7. argTypes: {
  8. label: {
  9. control: { type: 'text' },
  10. },
  11. hint: {
  12. control: { type: 'text' },
  13. },
  14. variant: {
  15. control: {
  16. type: 'select',
  17. },
  18. options: TextControl.AVAILABLE_VARIANTS,
  19. },
  20. size: {
  21. control: {
  22. type: 'select',
  23. },
  24. options: TextControl.AVAILABLE_SIZES,
  25. },
  26. length: {
  27. control: { type: 'number' },
  28. },
  29. onChange: {
  30. table: {
  31. disable: true,
  32. },
  33. action: 'changed',
  34. },
  35. },
  36. args: {
  37. ...(Component.defaultProps ?? {}),
  38. label: Component.displayName,
  39. },
  40. };
  41. export const DateDropdown = (args: Omit<Props, 'ref'>) => (
  42. <Component
  43. {...args}
  44. />
  45. );
  46. export default meta;