diff --git a/packages/docs/pages/textarea.tsx b/packages/docs/pages/textarea.tsx
index a9a71b3fc..1cc6b68bb 100644
--- a/packages/docs/pages/textarea.tsx
+++ b/packages/docs/pages/textarea.tsx
@@ -1,114 +1,148 @@
import { Form, FormGroup, H1, Panel, Text, Textarea } from '@bigcommerce/big-design';
import React, { useState } from 'react';
-import { Code, CodePreview, PageNavigation } from '../components';
+import { Code, CodePreview, ContentRoutingTabs, List } from '../components';
import { TextareaPropTable } from '../PropTables';
const TextAreaPage = () => {
- const items = [
- {
- id: 'examples',
- title: 'Examples',
- render: () => (
- <>
-
- Textareas are stylized form controls with the ability of controling validation.
-
- {/* jsx-to-string:start */}
- {function Example() {
- const [value, setValue] = useState('');
+ return (
+ <>
+ Textarea
- const handleChange = (event) => setValue(event.target.value);
+
+
+ Textarea
s are text inputs that can be expanded to fit multi-line text content from users.
+
+ When to use:
+
+
+ Text areas are useful when users need to create multi-sentence or paragraph length content - e.g. product
+ decriptions or messages.
+
+
+
- return (
-
- );
- }}
- {/* jsx-to-string:end */}
-
-
-
-
- Textareas allow you to pass in an error
message that will control the styles of an
- input. The logic on the input can be controlled with the onChange
prop.
-
+
+ (
+
+ {/* jsx-to-string:start */}
+ {function Example() {
+ const [value, setValue] = useState('');
-
- {/* jsx-to-string:start */}
-
- {/* jsx-to-string:end */}
-
-
-
-
- By default, a Textarea
displays with 3
rows. In order to set the intial amount
- of rows, pass in the rows
prop. There can only be a maximum of 7
rows.
-
+ const handleChange = (event) => setValue(event.target.value);
-
- {/* jsx-to-string:start */}
-
- {/* jsx-to-string:end */}
-
-
-
-
- You can also control whether Textarea
components are resizeable. Resizing is only available
- on the vertical axis.
-
+ return (
+
+ );
+ }}
+ {/* jsx-to-string:end */}
+
+ ),
+ },
+ {
+ id: 'error-state',
+ title: 'Error state',
+ render: () => (
+ <>
+
+ Textareas allow you to pass in an error
message that will control the styles of
+ an input. The logic on the input can be controlled with the onChange
prop.
+
-
- {/* jsx-to-string:start */}
-
- {/* jsx-to-string:end */}
-
-
- >
- ),
- },
- {
- id: 'props',
- title: 'Props',
- render: () => ,
- },
- ];
+
+ {/* jsx-to-string:start */}
+
+ {/* jsx-to-string:end */}
+
+ >
+ ),
+ },
+ {
+ id: 'controlling-rows',
+ title: 'Controlling rows',
+ render: () => (
+ <>
+
+ By default, a Textarea
displays with 3
rows. In order to set the intial
+ amount of rows, pass in the rows
prop. There can only be a maximum of 7
{' '}
+ rows.
+
- return (
- <>
- Textarea
+
+ {/* jsx-to-string:start */}
+
+ {/* jsx-to-string:end */}
+
+ >
+ ),
+ },
+ {
+ id: 'resizable',
+ title: 'Resizable',
+ render: () => (
+ <>
+
+ You can also control whether Textarea
components are resizeable. Resizing is only
+ available on the vertical axis.
+
+
+
+ {/* jsx-to-string:start */}
+
+ {/* jsx-to-string:end */}
+
+ >
+ ),
+ },
+ ]}
+ />
+
-
+
+
+
>
);
};