1.0.7 • Published 2 years ago

rc-tabs-component v1.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

rc-tabs-component

Simple React Tabs component with 4 different styles including Materialize and Bootstrap

Feature

4 differnt styles. rc-tabs-components can render conponents and plain JSX

install

yarn add rc-tabs-component

or

npm install --save rc-tabs-component

Basic Example

import Tabs  from 'rc-tabs-component'



function App() {

  const tags = ['TAB 1', 'TAB 2', 'TAB 3', 'TAB 4']; //the array or names of tabs

  const Content1 = () => {
    return (
    //.....//
    )
  }

  const Content2 = () => {
    return (
    //.....//
    )
  }

  return (
    <Tabs tags={tags}
          style_type='material'>
      <Content1/>
      <Content2/>
      <div>
        <h3>
          Tab 3 Content
        </h3>
        <p>
        Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed
        </p>
      </div>
      <div>
        <h3>
          Tab 4 Content
        </h3>
        <p>
        Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
        eiusmod tempor incididunt ut labore et dolore magna aliqua.
        </p>
      </div>
    </Tabs>
  )
}

Options

tags - the array of the names of the tags

style_type - defines the styling of the element. Values:

  1. material
  2. bootstrap
  3. button
  4. void/default

material

bootstrap

button

default

License

rc-tabs-component is released under the MIT license.

1.0.7

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago