An open API service indexing awesome lists of open source software.

https://github.com/babakfp/easy-tab

Easily create tab navigations
https://github.com/babakfp/easy-tab

tab-navigation taby

Last synced: over 1 year ago
JSON representation

Easily create tab navigations

Awesome Lists containing this project

README

          

# Easy Tab

Easily create tab navigations.

## Production files

Path: `/dist`

- `/dist/easytab-dist.js`
- `/dist/easytab-dist.css`

## Usage

```js
new EasyTab(container, activeIndex = 1)
```

```html


  • Tab 1

  • Tab 2
  • Content 1

    Content 2

    new EasyTab('.my-easytab')
    // Or
    // new EasyTab(document.querySelector('.my-easytab'))

    ```

    Multiple instances with one line of code

    ```html

    const allEasytabs = document.querySelectorAll('.my-easytab')
    allEasytabs.forEach(el => new EasyTab(el))

    ```