({
primary = false,
size = 'medium',
backgroundColor,
label,
...props
}: ButtonProps)
| 28 | * 东东东东东东东东东东东东东东东东 |
| 29 | */ |
| 30 | export const Button = ({ |
| 31 | primary = false, |
| 32 | size = 'medium', |
| 33 | backgroundColor, |
| 34 | label, |
| 35 | ...props |
| 36 | }: ButtonProps) => { |
| 37 | const mode = primary ? 'storybook-button--primary' : 'storybook-button--secondary'; |
| 38 | return ( |
| 39 | <button |
| 40 | type="button" |
| 41 | className={['storybook-button', `storybook-button--${size}`, mode].join(' ')} |
| 42 | style={{ backgroundColor }} |
| 43 | {...props} |
| 44 | > |
| 45 | {label} |
| 46 | </button> |
| 47 | ); |
| 48 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected