GithubHelp home page GithubHelp logo

sjmaceyful / ember-responsive-tabs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rajasegar/ember-responsive-tabs

0.0 1.0 0.0 1.68 MB

Full width responsive tab component as an ember addon

License: MIT License

JavaScript 50.99% CSS 25.89% HTML 23.11%

ember-responsive-tabs's Introduction

ember-responsive-tabs

Build Status npm npm version MIT license EmberObserver

Responsive full-width tab component with customizable theme options. Icons are provisioned by Font-awesome you need to add font-awesome to your project.

Kindly refer to the dummy app in tests.

Heavily inspired by this Codrops article

Demo

Demo

Installation

  • ember install ember-responsive-tabs

Usage

Example markup:

{{#fullwidth-tabs as |tab|}}

  {{#tab.pane title="Home" icon="fa fa-home"}}
    <h1>Home</h1>
    <p>Content for home tab goes here</p>
  {{/tab.pane}}

  {{#tab.pane title="Profile" icon="fa fa-profile"}}
    <h1>Profile</h1>
    <p>Content for profile tab goes here</p>
  {{/tab.pane}}

  {{#tab.pane title="Settings" icon="fa fa-settings"}}
    <h1>Home</h1>
    <p>Content for settings tab goes here</p>
  {{/tab.pane}}

  {{#tab.pane title="Message" icon="fa fa-message"}}
    <h1>Home</h1>
    <p>Content for message tab goes here</p>
  {{/tab.pane}}

{{/fullwidth-tabs}}

Customization - Theming

This tab component can be themed using CSS variables to suit the color of your choice. Kindly override these variable values in your css file.

For example:

:root {
    --tab-primary: #47a3da;  /* Active Color */
    --tab-secondary: #becbd2; /* Normal Color and Border */
    --tab-hover: #768e9d; /* Hover Color */
}

Running

Running Tests

  • npm test (Runs ember try:each to test your addon against multiple Ember versions)
  • ember test
  • ember test --server

Building

  • ember build

For more information on using ember-cli, visit https://ember-cli.com/. Full width responsive tab component as an ember addon

ember-responsive-tabs's People

Contributors

rajasegar avatar

Watchers

Steve Macey avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.