From 31b19df51e45d652db3299c69865cd10b9db4ce5 Mon Sep 17 00:00:00 2001 From: Jorge Moya Date: Tue, 12 Oct 2021 10:47:03 -0500 Subject: [PATCH] feat(docs): update textarea page to use new layout --- packages/docs/pages/textarea.tsx | 230 ++++++++++++++++++------------- 1 file changed, 132 insertions(+), 98 deletions(-) diff --git a/packages/docs/pages/textarea.tsx b/packages/docs/pages/textarea.tsx index a9a71b3fc..168c09d7d 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 ( -
- -