Skip to content

Commit 65bfd19

Browse files
authored
docs: remove tab in props control panel (#2438)
* docs: remove tab in props control panel * chore: address comments
1 parent 8cd5cd4 commit 65bfd19

File tree

1 file changed

+6
-18
lines changed

1 file changed

+6
-18
lines changed

docs/src/components/Demo.tsx

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
11
import * as React from 'react';
2-
import { CopyToClipboard } from 'react-copy-to-clipboard';
32
import Highlight, { defaultProps } from 'prism-react-renderer';
4-
import {
5-
Tabs,
6-
TabItem,
7-
Flex,
8-
View,
9-
Button,
10-
useTheme,
11-
} from '@aws-amplify/ui-react';
3+
import { Divider, Flex, View, useTheme } from '@aws-amplify/ui-react';
124
import { CopyButton } from './CopyButton';
135

146
interface DemoProps {
@@ -50,16 +42,12 @@ export const Demo = ({
5042
<View overflow="auto" padding="5px">
5143
{children}
5244
</View>
45+
<Divider
46+
margin="20px 0 0"
47+
border={`2px solid ${tokens.colors.border.secondary}`}
48+
/>
5349
{propControls && (
54-
<Tabs>
55-
<TabItem title="Props">
56-
<View padding={`${tokens.space.medium} 0`}>{propControls}</View>
57-
</TabItem>
58-
{/* Temporarily removing the Theme tab until we figure out a way
59-
to let customers dynamically edit a theme object in the demos
60-
*/}
61-
{/* {themeControls ? <TabItem title="Theme">{themeControls}</TabItem> : null} */}
62-
</Tabs>
50+
<View padding={`${tokens.space.medium} 0`}>{propControls}</View>
6351
)}
6452
</Flex>
6553
<View

0 commit comments

Comments
 (0)