@arcteryx/components-tabs
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

@arcteryx/components-tabs

Heard you like Tabs...

Install

npm install --save @arcteryx/components-tabs

Usage

import { TabContainer, TabList, TabButton } from "@arcteryx/components-tabs";
  const [ tabIndex, setTabIndex ] = useState(0)

  <div>
    <TabList
      selectedIndex={tabIndex}
      setSelectedIndex={setTabIndex}
      preventClick={true} // prevents click of buttons to allow the parent component to control the index
      theme="campaigns" // theme options: default or campaigns
    >
      <TabButton>Ship to you</TabButton>
      <TabButton>Pick up at Store</TabButton>
    </TabList>
    <TabContainer>
      Content1
    </TabContainer>
    <TabContainer>
      Content 2
    </TabContainer>
  </div>

Readme

Keywords

none

Package Sidebar

Install

npm i @arcteryx/components-tabs

Weekly Downloads

324

Version

2.0.0

License

ISC

Unpacked Size

98.9 kB

Total Files

38

Last publish

Collaborators

  • justinohalloran
  • ronvs
  • jamiearc