mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 21:31:48 +08:00
15 lines
278 B
JavaScript
15 lines
278 B
JavaScript
import React from 'react';
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
export const Button = ({ onClick = () => {}, label = '' }) => (
|
|
<button type="button" onClick={onClick}>
|
|
{label}
|
|
</button>
|
|
);
|
|
|
|
Button.propTypes = {
|
|
onClick: PropTypes.func,
|
|
label: PropTypes.string,
|
|
};
|