-
-
Notifications
You must be signed in to change notification settings - Fork 303
/
index.tsx
47 lines (40 loc) · 1.18 KB
/
index.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import { ReactElement } from "react";
import DemoPage from "../DemoPage";
import README from "./README.md";
import BasicUsage from "./BasicUsage";
import basicUsage from "./BasicUsage.md";
import SimpleTwoPageTab from "./SimpleTwoPageTab";
import simpleTwoPageTab from "./SimpleTwoPageTab.md";
import { ConfigurableTabs, configurableTabs } from "./ConfigurableTabs";
import { PersistentTabs, persistentTabs } from "./PersistentTabs";
const demos = [
{
name: "Basic Usage",
description: basicUsage,
children: <BasicUsage />,
phoneFullPage: true,
},
{
name: "Simple Two Page Tab",
description: simpleTwoPageTab,
children: <SimpleTwoPageTab />,
emulated: { appBar: null, contentStacked: true },
fullPageFAB: true,
},
{
name: "Persistent Tabs",
description: persistentTabs,
children: <PersistentTabs />,
emulated: { appBar: null, contentStacked: true },
fullPageFAB: true,
},
{
name: "Configurable Tabs",
description: configurableTabs,
children: <ConfigurableTabs />,
phoneFullPage: true,
},
];
export default function Tabs(): ReactElement {
return <DemoPage demos={demos} description={README} packageName="tabs" />;
}