react-jsbox-tab
Tab component of react-jsbox, layout inspired by Ryan's Mtime Movie
Install
npm i react-jsbox-tab -S
Example
Basic
import React from 'react'import Tab from 'react-jsbox-tab' const TAB_HEIGHT = 50 { const tabFrame = const contentFrame = const selectedIndex setSelectedIndex = return <> // Place the screen component to be displayed and set its hidden property according to the selectedIndex. <Home = = /> <Recent = = /> <Settings = = /> <Tab = = = = /> </> } const tabItems = name: 'Home' icon: '102' name: 'Recent' icon: '099' name: 'Settings' icon: '002'