|
1 |
| -import { boolean, select, text } from '@storybook/addon-knobs'; |
| 1 | +import { createSelectArgTypes } from '@shared/stories/createSelectArgTypes'; |
2 | 2 | import { BusyIndicator } from '@ui5/webcomponents-react/lib/BusyIndicator';
|
3 | 3 | import { BusyIndicatorSize } from '@ui5/webcomponents-react/lib/BusyIndicatorSize';
|
| 4 | +import { Text } from '@ui5/webcomponents-react/lib/Text'; |
4 | 5 | import React from 'react';
|
5 | 6 |
|
6 | 7 | export default {
|
7 | 8 | title: 'UI5 Web Components / BusyIndicator',
|
8 |
| - component: BusyIndicator |
| 9 | + component: BusyIndicator, |
| 10 | + argTypes: { |
| 11 | + ...createSelectArgTypes({ sie: BusyIndicatorSize }) |
| 12 | + }, |
| 13 | + args: { |
| 14 | + active: true, |
| 15 | + text: 'Loading...' |
| 16 | + } |
9 | 17 | };
|
10 | 18 |
|
11 |
| -export const generatedDefaultStory = () => ( |
12 |
| - <BusyIndicator |
13 |
| - active={boolean('active', true)} |
14 |
| - size={select('size', BusyIndicatorSize, BusyIndicatorSize.Medium)} |
15 |
| - text={text('text', 'Loading...')} |
16 |
| - > |
17 |
| - Some Content |
| 19 | +export const generatedDefaultStory = (props) => ( |
| 20 | + <BusyIndicator active={props.active} size={props.size} text={props.text}> |
| 21 | + <Text> |
| 22 | + Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et |
| 23 | + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita |
| 24 | + kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur |
| 25 | + sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam |
| 26 | + voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata |
| 27 | + sanctus est Lorem ipsum dolor sit amet. |
| 28 | + </Text> |
18 | 29 | </BusyIndicator>
|
19 | 30 | );
|
20 | 31 |
|
|
0 commit comments