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

https://github.com/devlop/tabwrap

Minimalistic utility to add tab wrapping to any element, such as dialogs and popups.
https://github.com/devlop/tabwrap

javascript tabbing typescript ux

Last synced: 2 months ago
JSON representation

Minimalistic utility to add tab wrapping to any element, such as dialogs and popups.

Awesome Lists containing this project

README

        


Latest Stable Version
License

# tabwrap

Minimalistic utility to add tab wrapping to any element, such as dialogs and popups.

# Installing

using npm

```bash
npm install @devlop/tabwrap
```

# Usage

```html




```

```javascript
import tabwrap from '@devlop/tabwrap';

tabwrap(document.querySelector('div.dialog'));
```

## Simplified usage on multiple elements

If you have many places you want to add tab wrapping it can usefull to give all your elements you wish to target
the same attribute, for example `data-tabwrap`, then it's easy to add tab wrapping to them all like this.

```javascript
import tabwrap from '@devlop/tabwrap';

document.querySelectorAll('[data-tabwrap]').forEach(function (element) {
tabwrap(element);
});
```