Skip to content

Add TextArea component based on NextUI Textarea

Robbie Luijben requested to merge SDC-1248/add-text-area-to-design-system into main

Based on https://nextui.org/docs/components/textarea

Although similiar, a regular TextInput has stuff a TextArea does not have. Therefore, the TextArea does not wrap the base Input component but the NextUI Textarea component. It does however reuse:

  • The TextInputProps by extending it and then omitting irrelevant props (this seems to be the idiomatic way the DOM/NextUI does this in TS)
  • The base input class names by making some classes conditional (unfortunately, TextArea has different slots compared to the TextInput, e.g., it has no separate main wrapper)
Edited by Robbie Luijben

Merge request reports

Loading