Skip to content

kingRayhan/reactjs-tab

Repository files navigation

reactjs-tab

Minimal Tab ui component

NPM JavaScript Style Guide

Install

npm install --save reactjs-tab

Usage

import React, { Component } from 'react'

import { Tabs, Tab } from 'reactjs-tab'

export default class App extends Component {
  render() {
    return (
      <Tabs>
        <Tab name="Tab 1">{/* Tab content or component */}</Tab>
        <Tab name="Tab 2">{/* Tab content or component */}</Tab>
        <Tab name="Tab 3">{/* Tab content or component */}</Tab>
      </Tabs>
    )
  }
}

Default Style

Import default stylesheet

import 'reactjs-tab/tab.css'

Reactjs Default style

License

MIT © kingRayhan