Git Product home page Git Product logo

metal-tabs's Introduction

metal-tabs

Metal.js's tabs component.

Setup

  1. Install NodeJS >= v0.12.0, if you don't have it yet.

  2. Install global dependencies:

[sudo] npm install -g gulp
  1. Install local dependencies:
npm install
  1. Build the code:
npm run build
  1. Open the demo at demos/index.html on your browser.

metal-tabs's People

Contributors

eduardolundgren avatar fernandosouza avatar jbalsas avatar leventehudak avatar mairatma avatar vbence86 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

metal-tabs's Issues

How to pass an onClick event to tabs?

Hi Metal team,
I'm having trouble determining how to pass an onClick event to each tab.

Looking through both the demo, and the source, I don't see how I can pass an OnClick event to any of the tabs. Either in the tabs object array, or when declaring the component.

I've added the tabs as an array of objects
[{label: 'test', onClick: this.handleOnClick}]
^ This doesn't work.

<Tabs tabs={tabs} onClick={this.handleOnChange} />
^This doesn't work

Improve keyboard accessibility of tabs

We should follow the standard for tab panel accessibility.

We currently just follow the usual tab order, but that's not how tabs are expected to work, and can be really annoying for a page that has many tabs, specially when the user doesn't really want to change the tab, just access something in the active tab's content.

The standard is to only allow regular tabs to access the active tab. To switch between tabs the arrow keys should be used instead.

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.