📝(react) add TextArea to form examples

This is made to showcase the TextArea in real world use cases.
This commit is contained in:
Nathan Vasse
2023-10-20 17:14:15 +02:00
committed by NathanVss
parent bbf3df852f
commit 65850dc72f

View File

@@ -8,6 +8,7 @@ import { Select } from ":/components/Forms/Select";
import { FileUploader } from ":/components/Forms/FileUploader";
import { Switch } from ":/components/Forms/Switch";
import { Radio } from ":/components/Forms/Radio";
import { TextArea } from ":/components/Forms/TextArea";
export default {
title: "Components/Forms/Examples",
@@ -106,6 +107,9 @@ export const Application = () => {
accept="application/pdf"
/>
</div>
<div>
<TextArea label="Cover letter" fullWidth={true} rows={5} />
</div>
<div>
<Switch label="SMS Notification" fullWidth={true} />
<Switch label="Subscribe to newsletter" fullWidth={true} />