1.0.10 • Published 4 years ago

@giwisoft/wc-tabs v1.0.10

Weekly downloads
22
License
Apache-2.0
Repository
github
Last release
4 years ago

wc-tabs

Simple tabs component

<wc-tabs selection="1">
  <wc-tabs-header slot="header" name="tab1">Tab 1</wc-tabs-header>
  <wc-tabs-header slot="header" name="tab2">Tab 2</wc-tabs-header>
  <wc-tabs-header slot="header" name="tab3" disabled="true">Tab 3</wc-tabs-header>

  <wc-tabs-content slot="content" name="tab1">Content tab 1</wc-tabs-content>
  <wc-tabs-content slot="content" name="tab2" responsive="true">Content tab 2</wc-tabs-content>
  <wc-tabs-content slot="content" name="tab3">Content tab 3</wc-tabs-content>
</wc-tabs>

Properties

selection property is not mandatory. Default selection is the first tab (0).

selection can be changed externaly anytime to force tab selection.

selection is applied modulus the number of tab.

CSS vars

NameDescriptionDefault
--wc-tab-header-border-colorOutline border color#dee2e6
--wc-tab-header-bg-colorHeader default background colortransparent
--wc-tab-header-colorHeader default font color#007bff
--wc-tab-header-selected-colorSelected header font color#495057
--wc-tab-header-selected-bg-colorSelected header background color#fff
--wc-tab-header-selected-border-colorSelected header border color#dee2e6
--wc-tab-header-disabled-colorDisabled header font color
--wc-tab-header-disabled-bg-colorDisabled header background colortransparent

wc-tabs-content

Properties

PropertyAttributeDescriptionTypeDefault
namenamestringundefined
responsiveresponsivewhen set, force the div dimensions to 100%booleanfalse

Methods

getChild() => Promise<IWcTabContentData>

Returns

Type: Promise<IWcTabContentData>

wc-tabs-header

Properties

PropertyAttributeDescriptionTypeDefault
disableddisabledbooleanundefined
namenamestringundefined

Events

EventDescriptionDetail
onSelectvoid

Methods

getChild() => Promise<IWcTabHeaderData>

Returns

Type: Promise<IWcTabHeaderData>

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago