Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/uiwebkit/tabs-vue-3x

Uni Tabs example for Vue.js 3.x
https://github.com/uiwebkit/tabs-vue-3x

custom-elements html javascript stencil tab tab-bar tabs typescript vue vue3 vuejs web web-components widget

Last synced: 22 days ago
JSON representation

Uni Tabs example for Vue.js 3.x

Awesome Lists containing this project

README

        

# Uni Tabs example for Vue.js 3.x

Check out demo [here](https://uiwebkit.github.io/tabs-vue-3x/)

Check out our docs [here](https://uiwebkit.com/wgt/tabs/1/)

### Add to vue.config.js

```js
module.exports = {
chainWebpack: (config) => {
config.module
.rule("vue")
.use("vue-loader")
.tap((options) => ({
...options,
compilerOptions: {
...options.compilerOptions,
// treat any tag that starts with uni- as custom elements
isCustomElement: (tag) => tag.startsWith("uni-"),
},
}));
}
};
```

### Add to index.html

```html

```

#### Specify value for the tabs as JSON string

```vue


Tab Content 1

Tab Content 2

```

#### or specify url to the tabs JSON file (ex. tabs.json) or to the backend API endpoint

```vue



Tab 1 Content

Tab 2 Content


```

#### Next-Gen Customization (with Store)

```vue









Tab 2








Store Tab 1 Content


Store Tab 2 Content

```

#### Next-Gen Customization (with routes)

```vue


















Route Tab 1 Content


Route Tab 2 Content

```