Skip to content

Kiricon/fun-tabs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fun-tabs

An HTML custom element implementing the <fun-tabs> tag.

fun-input in action

Setup

Installation

npm i fun-tabs

<script src="node_modules/fun-tabs/fun-tabs.js"></script>

or if you're bundling

import "fun-tabs";
// or
require("fun-tabs");

Usage

    <fun-tabs selected="0">
        <fun-tab>Tab 1</fun-tab>
        <fun-tab>Tab 2</fun-tab>
        <fun-tab>Tab 3</fun-tab>
    </fun-tabs>

Customization

You can customize the color of the fun-tabs by assigning values to css elements.

The two css elements that affect fun-tabs are --fun-tabs-color and --secondary-color.

You can set there values like so

    :root {
        --fun-tabs-color: red; /* if both are set --fun-tabs-color takes precedence */
        --secondary-color: red; 
    }

About

A custom element implementation of tabs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published