preview.js 827 B

12345678910111213141516171819202122232425262728293031323334353637
  1. export const parameters = {
  2. actions: { argTypesRegex: '^on[A-Z].*' },
  3. controls: {
  4. matchers: {
  5. color: /(background|color)$/i,
  6. date: /Date$/,
  7. },
  8. },
  9. options: {
  10. storySort: {
  11. order: [
  12. 'Docs',
  13. [
  14. 'Intro',
  15. 'Getting Started',
  16. [
  17. 'Quick Start',
  18. 'Schemes',
  19. 'Configs'
  20. ]
  21. ],
  22. 'Components',
  23. [
  24. 'Text',
  25. 'Button',
  26. 'TextInput',
  27. '*'
  28. ],
  29. '*'
  30. ]
  31. }
  32. }
  33. };
  34. export const decorators = [
  35. (Story) => <Story/>
  36. ];