TextArea
Auto Size
Use the autoSize prop to automatically adjust the height of
the input to fit the content. Note that you can also use this prop in
conjunction with the rows and size props.
<DemoLayout> <TextArea spellCheck={false} defaultValue={loremIpsum} autoSize /> <TextArea rows={1} defaultValue="Hello World" autoSize /> <TextArea rows={1} size="small" defaultValue="Hello World" autoSize /> </DemoLayout>