1
0
mirror of https://github.com/yldio/copilot.git synced 2024-09-22 06:13:50 +03:00
copilot/ui/src/components/list/subtitle.js

33 lines
586 B
JavaScript
Raw Normal View History

2017-01-09 14:13:12 +02:00
const Title = require('./title');
const React = require('react');
const Styled = require('styled-components');
const {
default: styled
} = Styled;
const Span = styled.span`
display: flex;
flex-direction: column;
justify-content: flex-start;
font-weight: normal;
font-style: normal;
font-stretch: normal;
font-size: 14px;
color: #646464;
`;
const Subtitle = (props) => (
<Title name='list-item-subtitle' {...props}>
<Span>
{props.children}
</Span>
</Title>
);
Subtitle.propTypes = {
children: React.PropTypes.node
};
module.exports = Subtitle;