[solved] How do I set RFW Forms TextAreaField height?

I’ve tried

          <TextAreaField
            name="themeJSON"
            height="70vh"
            defaultValue={props.theme?.themeJSON}
            className="rw-input"
            errorClassName="rw-input rw-input-error"
            validation={{ required: true }}
          />

and

          <TextAreaField
            name="themeJSON"
            sx={{ height: '70vh' }}
            defaultValue={props.theme?.themeJSON}
            className="rw-input"
            errorClassName="rw-input rw-input-error"
            validation={{ required: true }}
          />

I’m by no means a React expert but my understanding of the basic html TextArea was always that it’s height was set by the number of rows was set and if it accepted single or multiple lines.

This field component is not part of the Redwood framework or React Form Hooks so I’d try searching for how to size text areas in React with your styling framework of choice or standard React.

1 Like

I forgot about ‘rows’ thanks!!

<TextAreaField is listed here…