
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
ElementBaseA set of pages with a tab strip governing which page is shown.
This stock combination puts together a basic-tab-strip and a basic-modes element. If you'd like to create something more complex than this arrangement, you can use either of those elements on its own.
Since this component uses basic-tab-strip internally, it obtains the names of
the individual tabs the same way: from a child's aria-label property.
Example:
<basic-tabs>
<div aria-label="One">Page one</div>
<div aria-label="Two">Page two</div>
<div aria-label="Three">Page three</div>
</basic-tabs>
Kind: global class
Extends: ElementBase
Mixes: ItemsSelection
, TargetSelection
ElementBase
booleanbooleanArray.<HTMLElement>numberobjectHTMLElementbooleanbooleanbooleanstringHTMLElementApply the indicate selection state to the item.
The default implementation of this method does nothing. User-visible effects will typically be handled by other mixins.
Kind: instance method of Tabs. Defined by ItemsSelection mixin.
| Param | Type | Description |
|---|---|---|
| item | HTMLElement | the item being selected/deselected |
| selected | boolean | true if the item is selected, false if not |
booleanTrue if the selection can be moved to the next item, false if not (the selected item is the last item in the list).
Kind: instance property of Tabs. Defined by ItemsSelection mixin.
booleanTrue if the selection can be moved to the previous item, false if not (the selected item is the first one in the list).
Kind: instance property of Tabs. Defined by ItemsSelection mixin.
Handle a new item being added to the list.
The default implementation of this method simply sets the item's selection state to false.
Kind: instance method of Tabs. Defined by ItemsSelection mixin.
| Param | Type | Description |
|---|---|---|
| item | HTMLElement | the item being added |
Array.<HTMLElement>The current set of items in the list.
Kind: instance property of Tabs. Defined by TargetSelection mixin.
This method is invoked when the underlying contents change. It is also invoked on component initialization – since the items have "changed" from being nothing.
Kind: instance method of Tabs. Defined by TargetSelection mixin.
Fires when the selectedIndex property changes.
Kind: event emitted by Tabs. Defined by ItemsSelection mixin.
| Param | Type | Description |
|---|---|---|
| detail.selectedIndex | number | The new selected index. |
Fires when the selectedItem property changes.
Kind: event emitted by Tabs. Defined by ItemsSelection mixin.
| Param | Type | Description |
|---|---|---|
| detail.selectedItem | HTMLElement | The new selected item. |
| detail.previousItem | HTMLElement | The previously selected item. |
numberThe index of the item which is currently selected.
If selectionWraps is false, the index is -1 if there is no selection.
In that case, setting the index to -1 will deselect any
currently-selected item.
Kind: instance property of Tabs. Defined by ItemsSelection mixin.
objectThe currently selected item, or null if there is no selection.
Setting this property to null deselects any currently-selected item.
Kind: instance property of Tabs. Defined by ItemsSelection mixin.
HTMLElementThe currently selected item, or null if there is no selection.
Kind: instance property of Tabs. Defined by TargetSelection mixin.
Select the first item in the list.
Kind: instance method of Tabs. Defined by ItemsSelection mixin.
booleanTrue if the list should always have a selection (if it has items).
Kind: instance property of Tabs. Defined by ItemsSelection mixin.
Default: false
booleanTrue if selection navigations wrap from last to first, and vice versa.
Kind: instance property of Tabs. Defined by TargetSelection mixin.
Default: {false}
booleanTrue if selection navigations wrap from last to first, and vice versa.
Kind: instance property of Tabs. Defined by ItemsSelection mixin.
Default: false
Select the last item in the list.
Kind: instance method of Tabs. Defined by ItemsSelection mixin.
Select the next item in the list.
Kind: instance method of Tabs. Defined by ItemsSelection mixin.
Select the previous item in the list.
Kind: instance method of Tabs. Defined by ItemsSelection mixin.
stringThe position of the tab strip relative to the element's children. Valid values are "top", "left", "right", and "bottom".
Kind: instance property of Tabs
Default: ""top""
HTMLElementGets/sets the target element to which this component will delegate selection actions.
Kind: instance property of Tabs. Defined by TargetSelection mixin.
FAQs
A set of pages with a tab strip governing which page is shown.
We found that basic-tabs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.