Design system.
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 

40 righe
794 B

  1. import * as React from 'react';
  2. import type { Meta } from '@storybook/react';
  3. import { ActionButton as Component, ActionButtonProps as Props } from '.';
  4. import { Button } from '@tesseract-design/web-base';
  5. const meta: Meta<typeof Component> = {
  6. component: Component,
  7. argTypes: {
  8. type: {
  9. control: { type: 'select' },
  10. options: Button.AVAILABLE_TYPES,
  11. },
  12. variant: {
  13. control: { type: 'select' },
  14. options: Button.AVAILABLE_VARIANTS,
  15. },
  16. size: {
  17. control: { type: 'select' },
  18. options: Button.AVAILABLE_SIZES,
  19. },
  20. onClick: {
  21. table: {
  22. disable: true,
  23. },
  24. action: 'clicked',
  25. },
  26. },
  27. args: Component.defaultProps ?? {},
  28. };
  29. export const ActionButton = (args: Omit<Props, 'ref'>) => (
  30. <Component
  31. {...args}
  32. >
  33. Button
  34. </Component>
  35. );
  36. export default meta;