
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@tabbycss/tabby
Advanced tools
There are 3 ways to get started with tabby.css:
Download Tabby and link css/tabby.min.css
in the <head>
of your website.
<link rel="stylesheet" href="css/tabby.min.css" />
Alternatively, you can use jsDelivr CDN to link tabby.css
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@tabbycss/tabby/css/tabby.min.css" />
npm install @tabbycss/tabby
index.html
<div role="tablist" class="tabby">
<a role="tab" class="tab" selected>
Movies
<div class="tab-border"></div>
</a>
<a role="tab" class="tab">
Shows
<div class="tab-border"></div>
</a>
<a role="tab" class="tab" disabled>
Disabled
<div class="tab-border"></div>
</a>
</div>
To add functionality to tabby we can add this snippet of javascript.
index.html
<script>
const Tabby = document.querySelectorAll('.tabby');
Tabby.forEach(container => {
const Tabs = container.querySelectorAll('.tab');
Tabs.forEach(item => {
item.addEventListener('click', () => {
Tabs.forEach(i => i.removeAttribute('selected'));
item.setAttribute('selected', '');
});
});
});
</script>
Check out the demo on codepen.
Tabby can be easily customized by altering its default variables in the :root
of your CSS.
CSS
:root {
/* Tabby default variables */
--tabby-width: 100%;
--tabby-height: 48px;
--tabby-tab-width: var(--tabby-width);
--tabby-tab-height: var(--tabby-height);
--tabby-tab-background-color: transparent;
--tabby-tab-selected-background-color: #E8F0FE;
--tabby-tab-hover-background-color: #d6d6d64d;
--tabby-tab-focus-background-color: #d6d6d64d;
--tabby-tab-active-background-color: #d6d6d64d;
--tabby-tab-color: #202124;
--tabby-tab-selected-color: #185ABC;
--tabby-tab-font-family: inherit;
--tabby-tab-font-size: 14px;
--tabby-tab-font-weight: 500;
--tabby-tab-line-height: normal;
--tabby-tab-radius: 0px;
--tabby-tab-padding-left: 20px;
--tabby-tab-padding-right: 20px;
--tabby-tab-padding: 0px var(--tab-span-padding-left) 0px var(--tab-span-padding-right);
--tabby-tab-disabled-opacity: 0.4;
--tabby-tab-border-color: transparent;
--tabby-tab-selected-border-color: #185ABC;
--tabby-tab-border-radius: 0px;
--tabby-tab-border-width: 100%;
--tabby-tab-border-height: 2.6px;
}
Licensed under the MIT License, Copyright © 2024-present tabbycss.
See LICENSE for more information.
FAQs
Tabby is an accessible tab library built with keyboard navigation support.
The npm package @tabbycss/tabby receives a total of 0 weekly downloads. As such, @tabbycss/tabby popularity was classified as not popular.
We found that @tabbycss/tabby demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.