Closed Light1126 closed 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
my fault
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