saagie-ui
Version:
Saagie UI from Saagie Design System
33 lines (28 loc) • 674 B
JavaScript
import React from 'react';
import PropTypes from 'prop-types';
const propTypes = {
children: PropTypes.node,
className: PropTypes.string,
/**
* The component used for the root node.
* Either a string to use a DOM element or a component.
*/
tag: PropTypes.elementType,
};
const defaultProps = {
children: '',
className: '',
tag: 'div',
};
export const SecondLevelNavContextual = ({
children,
className,
tag: Tag,
...props
}) => (
<Tag className={`sui-l-second-level-nav__contextual ${className}`} {...props}>
{children}
</Tag>
);
SecondLevelNavContextual.propTypes = propTypes;
SecondLevelNavContextual.defaultProps = defaultProps;