2.0.0 • Published 3 years ago
semantic-tabs v2.0.0
Semantic Tabs v2.0.0
SemanticTabs is a pure JavaScript or VanillaJS library built on TypeScript that can convert semantic HTML tags to tabs. It is only 1.09 kB.
Usage
- Install SemanticTabs,
npm i semantic-tabs. - Load the
semantic-tabs.min.js. - Call the function,
SemanticTabs();.
Parameters
elements
String. semantic-tabs by default. A CSS class to apply SemanticTabs.
componentClass:
String. semantic-tabs-component by default. A CSS class to group components (heads and elements).
elementClass:
String. semantic-tabs-element by default. A CSS class to group elements.
head:
String. h3 by default. An HTML tag or element as a head.
heads:
String. semantic-tabs-heads by default. A CSS class to group heads.