1.2.0 • Published 4 years ago

@ma.vu/tabs v1.2.0

Weekly downloads
6
License
MIT
Repository
github
Last release
4 years ago

Tabs

Install

yarn add @ma.vu/tabs

OR

npm install @ma.vu/tabs

Basic Example

import React from "react"
import { Tabs, TabPanel, TabPanels, Tab, TabList } from '@ma.vu/tabs'

function App() {
  return (
    <div className="App">
      <Tabs>
          <TabList>
            <Tab> English </Tab>
            <Tab> Schweizerdeutsch </Tab>
          </TabList>
          <TabPanels>
            <TabPanel> Hello </TabPanel>
            <TabPanel> Grüezi</TabPanel>
          </TabPanels>
      </Tabs>
    </div>
  )
}

export default App

Motivation:

I like simple things, I couldn't find minimalistic tab like behaviour that I can apply styles to. This is my attempt for minimalistic Tabs.

Gradient from

gradient

Thanks to Ryan Florence who though me this pattern