diff --git a/packages/docs/pages/collapse.tsx b/packages/docs/pages/collapse.tsx index d6b5a7a3e..65cadc990 100644 --- a/packages/docs/pages/collapse.tsx +++ b/packages/docs/pages/collapse.tsx @@ -1,52 +1,52 @@ import { Collapse, H1, Panel, Text } from '@bigcommerce/big-design'; import React, { useState } from 'react'; -import { CodePreview, PageNavigation } from '../components'; +import { CodePreview, List } from '../components'; import { CollapsePropTable } from '../PropTables'; const CollapsePage = () => { - const items = [ - { - id: 'examples', - title: 'Examples', - render: () => ( - - Allows for showing/hiding content. - - {/* jsx-to-string:start */} - {function Example() { - const [title, setTitle] = useState('Show more'); - const handleChange = (isOpen: boolean) => setTitle(isOpen ? 'Show less' : 'Show more'); - - return ( - <> - - - Ea tempor sunt amet labore proident dolor proident commodo in exercitation ea nulla sunt pariatur. - Nulla sunt ipsum do eu consectetur exercitation occaecat labore aliqua. Aute elit occaecat esse ea - fugiat esse. Reprehenderit sunt ea ea mollit commodo tempor amet fugiat. - - - - ); - }} - {/* jsx-to-string:end */} - - - ), - }, - { - id: 'props', - title: 'Props', - render: () => , - }, - ]; - return ( <>

Collapse

- + + The collapse component can hide/reveal content within a panel. + When to use it: + + + Use collapse to reduce clutter, hiding non-essential information or options on a panel or modal. + + + + + + Allows for showing/hiding content. + + + {/* jsx-to-string:start */} + {function Example() { + const [title, setTitle] = useState('Show more'); + const handleChange = (isOpen: boolean) => setTitle(isOpen ? 'Show less' : 'Show more'); + + return ( + <> + + + Ea tempor sunt amet labore proident dolor proident commodo in exercitation ea nulla sunt pariatur. + Nulla sunt ipsum do eu consectetur exercitation occaecat labore aliqua. Aute elit occaecat esse ea + fugiat esse. Reprehenderit sunt ea ea mollit commodo tempor amet fugiat. + + + + ); + }} + {/* jsx-to-string:end */} + + + + + + ); };