2.3.0 • Published 10 months ago

@elvia/elvis-tabs v2.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Elvia Tabs

Tabs are used to divide content into sections and let the user navigate between one section at a time. Use tabs when the content is at the same level of the hierarchy and are related. It should always be one tab selected by default.

Number of tabs

Tabs with more than 6 options should be avoided and never fewer than 2 tabs.

Option label

Keep the option label name of a tab short, descriptive and unique. Should not be any longer than two words.

Props

  • items (string) required - Items getting converted to tabs.
  • value (number) - Index of selected tab.
  • valueOnChange (function) - Gets called every time the value is changed.

REACT COMPONENT

import { Tabs } from '@elvia/elvis-tabs/react';
<Tabs
    items={items}
    value={selectedValue}
    valueOnChange={setSelectedValue}
></Tabs>

WEB COMPONENT (Angular, Vue, etc)

import '@elvia/elvis-tabs';
<elvia-tabs
    [items]="items"
    [value]="value"
    (valueOnChange)="value = $event.detail.value"
></elvia-tabs>
2.3.0

10 months ago

2.2.5

1 year ago

2.2.4

1 year ago

2.2.6

10 months ago

2.2.1

2 years ago

2.2.0

2 years ago

2.2.3

2 years ago

2.2.2

2 years ago

2.0.3

2 years ago

2.0.2

2 years ago

1.6.1

3 years ago

1.6.0

3 years ago

1.5.12

3 years ago

2.0.1

2 years ago

2.0.0

3 years ago

1.5.5

3 years ago

1.5.4

3 years ago

1.5.3

3 years ago

1.5.2

3 years ago

1.5.10

3 years ago

1.5.11

3 years ago

1.5.9

3 years ago

1.5.8

3 years ago

1.5.7

3 years ago

1.5.6

3 years ago

1.5.1

3 years ago

1.5.0

3 years ago

1.4.0

3 years ago

1.3.3-beta.1

3 years ago

1.3.4

3 years ago

1.3.3

3 years ago

1.3.2

3 years ago

1.2.0

3 years ago

1.1.5

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.2.1

3 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.1

4 years ago

1.1.2

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago