pixijs / storybook

MIT License
29 stars 5 forks source link

where is the argTypes #16

Closed Light1126 closed 7 months ago

Light1126 commented 7 months ago

in your example https://pixijs.io/ui/storybook/?path=/story/components-button-use-sprite--use-sprite

import { Text } from '@pixi/text'; import { Button } from '../../Button'; import { action } from '@storybook/addon-actions'; import { argTypes, getDefaultArgs } from '../utils/argTypes'; import { centerView } from '../../utils/helpers/resize'; import { preload } from '../utils/loader'; import { Sprite } from '@pixi/sprite'; import { defaultTextStyle } from '../../utils/helpers/styles'; import { Texture, utils } from '@pixi/core';

i guess button is import { Button } from '@pixi/ui'; , but where is the getDefaultArgs and argTypes

Light1126 commented 7 months ago

in your example https://pixijs.io/ui/storybook/?path=/story/components-button-use-sprite--use-sprite

import { Text } from '@pixi/text'; import { Button } from '../../Button'; import { action } from '@storybook/addon-actions'; import { argTypes, getDefaultArgs } from '../utils/argTypes'; import { centerView } from '../../utils/helpers/resize'; import { preload } from '../utils/loader'; import { Sprite } from '@pixi/sprite'; import { defaultTextStyle } from '../../utils/helpers/styles'; import { Texture, utils } from '@pixi/core';

i guess button is import { Button } from '@pixi/ui'; , but where is the getDefaultArgs and argTypes

Light1126 commented 7 months ago

my fault