mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 05:51:21 +08:00
18 lines
457 B
JavaScript
18 lines
457 B
JavaScript
/* eslint-disable react/prop-types */
|
|
|
|
import React from 'react';
|
|
import DocgenButton from './DocgenButton';
|
|
|
|
/** Button component description */
|
|
const ImportedPropsButton = ({ disabled, label, onClick }) => (
|
|
<button type="button" disabled={disabled} onClick={onClick}>
|
|
{label}
|
|
</button>
|
|
);
|
|
|
|
ImportedPropsButton.defaultProps = DocgenButton.defaultProps;
|
|
|
|
ImportedPropsButton.propTypes = DocgenButton.propTypes;
|
|
|
|
export default ImportedPropsButton;
|