fbredius/storybook

View on GitHub
examples/official-storybook/components/NamedExportButton.js

Summary

Maintainability
A
1 hr
Test Coverage
import React from 'react';
import PropTypes from 'prop-types';
import BaseButton from './BaseButton';

const NamedExportButton = (props) => <BaseButton {...props} />;

NamedExportButton.defaultProps = {
  disabled: false,
  onClick: () => {},
  style: {},
};

NamedExportButton.propTypes = {
  /** Boolean indicating whether the button should render as disabled */
  disabled: PropTypes.bool,
  /** button label. */
  label: PropTypes.string.isRequired,
  /** onClick handler */
  onClick: PropTypes.func,
  /** Custom styles */
  style: PropTypes.shape({}),
};

export { NamedExportButton };