You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
516 B
28 lines
516 B
7 years ago
|
import PropTypes from 'prop-types';
|
||
|
import React from 'react';
|
||
|
import styles from './DescriptionListItemTitle.css';
|
||
|
|
||
|
function DescriptionListItemTitle(props) {
|
||
|
const {
|
||
|
className,
|
||
|
children
|
||
|
} = props;
|
||
|
|
||
|
return (
|
||
|
<dt className={className}>
|
||
|
{children}
|
||
|
</dt>
|
||
|
);
|
||
|
}
|
||
|
|
||
|
DescriptionListItemTitle.propTypes = {
|
||
|
className: PropTypes.string.isRequired,
|
||
|
children: PropTypes.string
|
||
|
};
|
||
|
|
||
|
DescriptionListItemTitle.defaultProps = {
|
||
|
className: styles.title
|
||
|
};
|
||
|
|
||
|
export default DescriptionListItemTitle;
|