@smarthtmlelements/smart-tabs
Version:
95 lines (64 loc) • 3.08 kB
Markdown
[](https://www.webcomponents.org/element/htmlelements/smart-tabs)
[](https://htmlelements.com/demos/tabs/)
|
[](https://www.htmlelements.com/docs/)
|
[](https://www.npmjs.com/package/@smarthtmlelements/smarthtmlelements-core)
[<smart-tabs>](https://htmlelements.com/demos/tabs/) is a Tabs Custom HTML Element that make it easy to explore and switch between different views, part of the [Smart HTML Elements](https://htmlelements.com/).
<!--
```
<custom-element-demo>
<template>
<script src="../webcomponentsjs/webcomponents-lite.js"></script>
<script src="../smart-core/source/smart.element.js"></script>
<script src="../smart-core/source/smart.tabs.js"></script>
<link rel="stylesheet" href="../smart-core/source/styles/smart.base.css" type="text/css" />
<link rel="stylesheet" href="../smart-core/source/styles/smart.material.css" type="text/css" />
<next-code-block></next-code-block>
</template>
</custom-element-demo>
```
-->
```html
<smart-tabs class='material'>
<smart-tab-item label="Tab 1" selected>
// Content goes here.
</smart-tab-item>
<smart-tab-item label="Tab 2">
// Content goes here.
</smart-tab-item>
<smart-tab-item label="Tab 3">
// Content goes here.
</smart-tab-item>
</smart-tabs>
```
[<img src="https://raw.githubusercontent.com/htmlelements/smart-tabs/master/smart-tabs.png" alt="Screenshot of smart-tabs, using the Material theme">](https://htmlelements.com/demos/tabs)
Smart HTML Elements components documentation includes getting started, customization and api documentation topics.
[](https://www.htmlelements.com/docs/tabs/)
|
[](https://www.htmlelements.com/docs/tabs-css/)
|
[](https://www.htmlelements.com/docs/tabs-api/)
- `source-minified/`
Javascript files.
- `source-minified/styles/`
Component CSS Files.
- `demos/`
Demo files
1. Fork the `Smart-HTML-Elements-Core` repository and clone it locally.
1. Make sure you have [npm](https://www.npmjs.com/) installed.
1. When in the `Smart-HTML-Elements-Core` directory, run `npm install` and then `bower install` to install dependencies.
1. Run a localhost or upload the demo on a web server. Then run:
- /demos/smart-button/smart-button-overview.htm
We are using [ESLint](http://eslint.org/) for linting JavaScript code.
- Make sure your code is compliant with ESLint
- [Submit a pull request](https://www.digitalocean.com/community/tutorials/how-to-create-a-pull-request-on-github) with detailed title and description
- Wait for response from one of our team members
Apache License 2.0