Merged in feat/3685-new-textarea-component (pull request #3392)

feat(SW-3685): Add new TextArea and FormTextArea components

* Add new TextArea and FormTextArea components

* Update example form with description

* Merge branch 'master' into feat/3685-new-textarea-component

* Formatting new files with new prettier config

* Added custom controls for the text area story


Approved-by: Linus Flood
This commit is contained in:
Rasmus Langvad
2026-01-07 17:04:30 +00:00
parent d0546926a9
commit 4980cc830d
17 changed files with 752 additions and 304 deletions

View File

@@ -1,8 +1,8 @@
import { useIntl } from "react-intl"
import TextArea from "@scandic-hotels/design-system/Form/TextArea"
import { Typography } from "@scandic-hotels/design-system/Typography"
import { FormTextArea } from "@scandic-hotels/design-system/Form/FormTextArea"
import styles from "./specialRequests.module.css"
import type { RegisterOptions } from "react-hook-form"
@@ -63,7 +63,7 @@ export function SpecialRequests({
},
]}
/> */}
<TextArea
<FormTextArea
label={intl.formatMessage({
id: "enterDetails.specialRequests.commentLabel",
defaultMessage: