import React from 'react' import { asField } from 'informed' import system from '@rebass/components' import { styles } from 'styled-system' import { withTheme } from 'styled-components' import { Flex } from 'rebass' import { Message } from 'components/UI' // Create an html textarea element that accepts all style props from styled-system. const SystemTextArea = system( { as: 'textarea', border: 1, borderColor: 'gray', borderRadius: '5px', bg: 'transparent', color: 'primaryText', fontFamily: 'sans', fontSize: 'm', fontWeight: 'light', p: 3, width: 1, rows: 5 }, ...Object.keys(styles) ) /** * @render react * @name TextArea * @example *