3.0.0 • Published 9 months ago

@arcteryx/components-tabs v3.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
9 months ago

@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>
2.1.1

10 months ago

2.1.0

10 months ago

3.0.0

9 months ago

2.0.0

1 year ago

1.6.2

1 year ago

1.6.1

1 year ago

1.6.0

1 year ago

1.6.0-gamma.0

1 year ago

1.6.0-ts2.0

1 year ago

1.6.0-test.0

1 year ago

1.6.0-ts.0

1 year ago

1.6.0-alpha.0

1 year ago

1.5.1-alpha.0

1 year ago

1.5.0

2 years ago

1.4.2

2 years ago

1.4.1

2 years ago

1.4.0

2 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.1.6

3 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago