{label &&
{label}
}
diff --git a/packages/react/src/components/Forms/TextArea/index.spec.tsx b/packages/react/src/components/Forms/TextArea/index.spec.tsx
index a9cedbd..eea9b45 100644
--- a/packages/react/src/components/Forms/TextArea/index.spec.tsx
+++ b/packages/react/src/components/Forms/TextArea/index.spec.tsx
@@ -191,4 +191,12 @@ describe("", () => {
await user.clear(textarea);
screen.getByText("Value: .");
});
+
+ it("renders with className", async () => {
+ render();
+ screen.debug();
+ expect(
+ document.querySelector(".c__field--textarea.my-custom-class"),
+ ).toBeInTheDocument();
+ });
});
diff --git a/packages/react/src/components/Forms/TextArea/index.tsx b/packages/react/src/components/Forms/TextArea/index.tsx
index fa9cb22..27109e5 100644
--- a/packages/react/src/components/Forms/TextArea/index.tsx
+++ b/packages/react/src/components/Forms/TextArea/index.tsx
@@ -44,12 +44,13 @@ export const TextArea = forwardRef(
setValue(props.value || "");
}, [props.value]);
- const { fullWidth, rightText, text, textItems, ...areaProps } = props;
+ const { fullWidth, rightText, text, textItems, className, ...areaProps } =
+ props;
return (
{/* We disabled linting for this specific line because we consider that the onClick props is only used for */}