From a697452b493f086532a0f0b9be4b1327b93733db Mon Sep 17 00:00:00 2001 From: John Tran Date: Sun, 12 Aug 2018 21:21:19 -0700 Subject: [PATCH] falcon-ui: Added initial Tabs refactored to react Defined component skeleton and Props type --- .../falcon-ui/src/components/Tabs/Tabs.js | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 packages/falcon-ui/src/components/Tabs/Tabs.js diff --git a/packages/falcon-ui/src/components/Tabs/Tabs.js b/packages/falcon-ui/src/components/Tabs/Tabs.js new file mode 100644 index 0000000..05bf3ac --- /dev/null +++ b/packages/falcon-ui/src/components/Tabs/Tabs.js @@ -0,0 +1,22 @@ +//@flow +import * as React from 'react' + +type Props = { + children: React.ReactNode, + className: string, + defaultFocus: boolean, + defaultIndex: number, + disabledTabClassName: string, + onSelect: (index: number, lastIndex: number, event: Event) => ?boolean, + selectedIndex: number, + selectedTabClassName: string, + selectedTabPanelClassName: PropTypes.string, +}; + +export default class Tabs extends Component { + render() { + return ( +
+ ); + } +}