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); + + + Textareas 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 ( -
- -