Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@giwisoft/wc-tabs

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@giwisoft/wc-tabs

Tabs component

  • 1.0.10
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
12
decreased by-14.29%
Maintainers
1
Weekly downloads
 
Created
Source

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>

Keywords

FAQs

Package last updated on 08 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc