UNPKG

saagie-ui

Version:

Saagie UI from Saagie Design System

33 lines (28 loc) 691 B
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 SecondLevelNavContextualInfo = ({ children, className, tag: Tag, ...props }) => ( <Tag className={`sui-l-second-level-nav__contextual-info ${className}`} {...props}> {children} </Tag> ); SecondLevelNavContextualInfo.propTypes = propTypes; SecondLevelNavContextualInfo.defaultProps = defaultProps;