# All files / src/TextArea TextArea.styles.ts

100% Statements 7/7
75% Branches 3/4
100% Functions 1/1
100% Lines 5/5

Press n or j to go to the next uncovered block, b, p or k for the previous block.

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    137x
    7x
    7x

    7x

    11x

     import styled from 'styled-components'
    import { getInputStyles } from '../Input/Input.styles'
    import { spacing } from '../_styles/spacing'
    import { TextAreaProps } from './TextArea.types'

    export const StyledTextArea = styled.textarea<TextAreaProps>`
      ${getInputStyles}

      min-height: 64px;
      padding: ${spacing.sm}px ${spacing.md}px;
      resize: ${({ resize = 'both' }) => resize};
    `