@ma.vu/tabs

1.2.0 • Public • Published

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

/@ma.vu/tabs/

    Package Sidebar

    Install

    npm i @ma.vu/tabs

    Weekly Downloads

    4

    Version

    1.2.0

    License

    MIT

    Unpacked Size

    5.29 kB

    Total Files

    4

    Last publish

    Collaborators

    • marko.vujanic