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
525 B
28 lines
525 B
import React from 'react'
|
|
import PropTypes from 'prop-types'
|
|
import { Text as BaseText } from 'rebass'
|
|
|
|
/**
|
|
* @render react
|
|
* @name Text
|
|
* @example
|
|
* <Text>Some text</Text>
|
|
*/
|
|
class Text extends React.PureComponent {
|
|
static displayName = 'Text'
|
|
|
|
static propTypes = {
|
|
children: PropTypes.node
|
|
}
|
|
|
|
render() {
|
|
const { children } = this.props
|
|
return (
|
|
<BaseText lineHeight="1.4" fontSize="m" color="primaryText" {...this.props}>
|
|
{children}
|
|
</BaseText>
|
|
)
|
|
}
|
|
}
|
|
|
|
export default Text
|
|
|