import React from 'react' ; import { TextArea } from '@workday/canvas-kit-preview-react/text-area' ; import { styled } from '@workday/canvas-kit-react/common' ; const StyledField = styled ( TextArea . Field ) ( { resize : 'vertical' , } ) ; export const ResizeConstraints = ( ) => { const [ value , setValue ] = React . useState ( '' ) ; const handleChange = ( event ) => { setValue ( event . target . value ) ; } ; return ( < TextArea orientation = 'vertical' > < TextArea . Label > Leave a review < /TextArea.Label> < StyledField onChange = { handleChange } value = { value } / > < /TextArea>); } ;