* Created the <ButtonGroup /> component. * Removed comment for children proptypes. * Updated <ButtonGroup /> SB story and tests.
12 lines
337 B
JavaScript
12 lines
337 B
JavaScript
import { h } from 'preact';
|
|
import { defaultChildrenPropTypes } from '../../src/components/common-prop-types';
|
|
|
|
export const ButtonGroup = ({ children }) => (
|
|
<div className="crayons-btn-group">{children}</div>
|
|
);
|
|
|
|
ButtonGroup.displayName = 'ButtonGroup';
|
|
|
|
ButtonGroup.propTypes = {
|
|
children: defaultChildrenPropTypes.isRequired,
|
|
};
|