@figlinq/react-chart-editor
Version:
plotly.js chart editor react component UI
2 lines • 553 B
JavaScript
import PropTypes from"prop-types";import{bem}from"../../lib";import{jsx as _jsx}from"react/jsx-runtime";const SidebarItem=_ref=>{let{onClick,label,active}=_ref;return _jsx("div",{onClick:onClick,className:bem("sidebar__item",[active?"is-active":""]),children:_jsx("div",{className:bem("sidebar__item","wrapper"),children:_jsx("div",{className:bem("sidebar__item","label"),children:label})})})};export default SidebarItem;SidebarItem.propTypes={active:PropTypes.bool,label:PropTypes.string,onClick:PropTypes.func};
//# sourceMappingURL=SidebarItem.js.map