juliankmazo / ivy-tabs

WAI-ARIA accessible tabs for Ember.

Home Page:http://ivyapp.github.io/ivy-tabs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ivy-tabs

Build Status

A group of Ember.js Components that interact to create a WAI-ARIA tab interface.

Special thanks to ic-tabs, which this addon is based on.

Installation

As an Ember CLI addon

Use this addon in your ember-cli application:

npm install --save-dev IvyApp/ivy-tabs

Usage

{{#ivy-tabs}}
  {{#ivy-tab-list}}
    {{#ivy-tab}}Foo{{/ivy-tab}}
    {{#ivy-tab}}Bar{{/ivy-tab}}
    {{#ivy-tab}}Baz{{/ivy-tab}}
  {{/ivy-tab-list}}

  {{#ivy-tab-panel}}
    <h2>Foo</h2>
  {{/ivy-tab-panel}}

  {{#ivy-tab-panel}}
    <h2>Bar</h2>
  {{/ivy-tab-panel}}

  {{#ivy-tab-panel}}
    <h2>Baz</h2>
  {{/ivy-tab-panel}}
{{/ivy-tabs}}

Some things to note:

  • Associations between tabs and tab-panes are inferred by order.
  • ivy-tab-list must be an immediate child of ivy-tabs.
  • ivy-tab must be an immediate child of ivy-tab-list.
  • ivy-tab-panel must be an immediate child of ivy-tabs.

Contributing

Fork this repo, make a new branch, and send a pull request. Make sure your change is tested or it won't be merged.

Installation

git clone git@github.com:IvyApp/ivy-tabs.git
cd ivy-tabs
npm install

Running

ember server

Then visit your app at http://localhost:4200.

Running Tests

ember test

Or, to start a test server:

ember test --server

Building

ember build

For more information on using ember-cli, visit http://www.ember-cli.com/.

About

WAI-ARIA accessible tabs for Ember.

http://ivyapp.github.io/ivy-tabs/

License:MIT License


Languages

Language:JavaScript 87.6%Language:HTML 12.4%