- {button}
+
+ {renderItem({ href, onClick, className: buttonClasses, children: buttonContent, ...rest })}
{childItems}
);
@@ -110,4 +111,5 @@ EuiSideNavItem.propTypes = {
items: PropTypes.node,
children: PropTypes.node,
depth: PropTypes.number,
+ renderItem: PropTypes.func,
};