superdesk/superdesk-client-core

View on GitHub
scripts/core/ui/components/Dropdown/Label.tsx

Summary

Maintainability
A
1 hr
Test Coverage
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';

/**
 * @ngdoc react
 * @name Label
 * @description Label styling for dropdown optins
 */

export const Label: React.StatelessComponent<any> = ({children, className}) => (
    <li
        className={classNames(
            'dropdown__menu-label',
            className,
        )}
    >
        {children}
    </li>
);

Label.propTypes = {
    children: PropTypes.node,
    className: PropTypes.string,
};