
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.
simple-tabs-component
Advanced tools
Keyboard accessible Tabs Web Component that changes to an Accordion in small spaces.
Keyboard accessible Tabs Web Component that changes to an Accordion in small spaces.

JavaScript is used to enable View Transitions that animate the the page when the active tab is changed.
<script src="https://unpkg.com/simple-tabs-component/simple-tabs.js"></script>
<script src="https://unpkg.com/simple-tabs-component/simple-tabs.js" type="module"></script>
<simple-tabs>
<template shadowrootmode="open">
<!-- Scoped Stylesheet -->
<link rel="stylesheet" href="https://unpkg.com/simple-tabs-component/simple-tabs.css">
<!-- ... -->
</template>
</simple-tabs>
<script src="./simple-tabs.js"></script>
<script src="./simple-tabs.js" type="module"></script>
<simple-tabs>
<template shadowrootmode="open">
<!-- Scoped Style Sheet -->
<link rel="stylesheet" href="./simple-tabs.css">
<!-- ... -->
</template>
</simple-tabs>
<label role="tab" id="tab-1">
<input type="radio" name="tabs" checked>
Tab Name
</label>
<div role="tabpanel" aria-labelledby="tab-1">
<p>Tab Content.</p>
</div><!-- /tabpanel -->
<simple-tabs>
<template shadowrootmode="open">
<!-- Scoped Stylesheet -->
<link rel="stylesheet" href="./simple-tabs.css">
<div class="simple-tabs" role="tabs">
<label role="tab" id="tab-1">
<input type="radio" name="tabs" checked>
First Tab
</label>
<div role="tabpanel" aria-labelledby="tab-1">
<p>Lorem ipsum dolor.</p>
</div><!-- /[role=tabpanel] -->
<label role="tab" id="tab-2">
<input type="radio" name="tabs">
Second Tab
</label>
<div role="tabpanel" aria-labelledby="tab-2">
<p>Tempora facilis aperiam.</p>
</div><!-- /[role=tabpanel] -->
</div><!-- /.simple-tabs -->
</template>
</simple-tabs>
<!-- Simple Tabs Script -->
<script src="./simple-tabs.js type="module"></script>
You can override the default values for certain properties from your global CSS. E.g:
:root {
--st-tabs-color: #ff0000; /* red */
--st-tab-font: system-ui;
}
view-transition-name's that enable the View Transitions.<template>, works without JavaScript.FAQs
Keyboard accessible Tabs Web Component that changes to an Accordion in small spaces.
We found that simple-tabs-component demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.