storybook-addon-playground
Version:
A playground to enable consumers learn how to use the component library or to reproduce bugs
13 lines (10 loc) • 545 B
JavaScript
import React__default from 'react';
import styles from './EditorTab.module.css.js';
import cx from 'classnames';
import { IconButton } from '@storybook/components';
const EditorTab = ({ title, selected, onClick = () => { }, }) => {
return (React__default.createElement(IconButton, { placeholder: title, onClick: () => !selected && onClick(), className: cx(styles.tab, { [styles.selected]: selected }) }, title));
};
var EditorTab$1 = React__default.memo(EditorTab);
export { EditorTab$1 as default };
//# sourceMappingURL=EditorTab.js.map