Design system.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 

26 rindas
436 B

  1. import * as React from 'react';
  2. import type { Meta } from '@storybook/react';
  3. import { Badge as Component, BadgeProps as Props } from '.';
  4. const meta: Meta<typeof Component> = {
  5. component: Component,
  6. argTypes: {
  7. children: {
  8. control: {
  9. type: 'text',
  10. },
  11. },
  12. },
  13. args: {
  14. ...(Component.defaultProps ?? {}),
  15. },
  16. };
  17. export const Badge = (args: Omit<Props, 'ref'>) => (
  18. <Component
  19. {...args}
  20. />
  21. );
  22. export default meta;