Neovici/cosmoz-tabs

View on GitHub
src/next/cosmoz-tabs.js

Summary

Maintainability
A
0 mins
Test Coverage
import { html, component, useEffect } from '@pionjs/pion';
import style from './cosmoz-tabs.css';

const Tabs = (host) => {
    useEffect(() => {
        host.setAttribute('role', 'tablist');
    }, []);

    return html`
        <style>
            ${style}
        </style>
        <slot></slot>
    `;
};

customElements.define('cosmoz-tabs-next', component(Tabs));