2.2.3 • Published 6 months ago

@elvia/elvis-tabs v2.2.3

Weekly downloads
-
License
MIT
Repository
-
Last release
6 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.2.1

8 months ago

2.2.0

9 months ago

2.2.3

6 months ago

2.2.2

7 months ago

2.0.3

11 months ago

2.0.2

11 months ago

1.6.1

1 year ago

1.6.0

1 year ago

1.5.12

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.5.5

2 years ago

1.5.4

2 years ago

1.5.3

2 years ago

1.5.2

2 years ago

1.5.10

1 year ago

1.5.11

1 year ago

1.5.9

1 year ago

1.5.8

2 years ago

1.5.7

2 years ago

1.5.6

2 years ago

1.5.1

2 years ago

1.5.0

2 years ago

1.4.0

2 years ago

1.3.3-beta.1

2 years ago

1.3.4

2 years ago

1.3.3

2 years ago

1.3.2

2 years ago

1.2.0

2 years ago

1.1.5

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.1

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.1

3 years ago

1.1.2

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago