npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@bloc-ui/tab

v0.0.4

Published

> **Latest:** v0.0.4

Readme

@bloc-ui/tab

Latest: v0.0.4

Tab group component for Angular — part of the Bloc UI component library. Supports disabled tabs, animated active indicator, manual CSS-token sizing, and selection change events.

Live Documentation & Demos

Tip: You can also install @bloc-ui/kit to get this package along with every other Bloc UI component in a single import.


Installation

npm install @bloc-ui/tab

Peer dependencies: @angular/common and @angular/core ≥ 21.


Usage

import { BlocTabGroupComponent, BlocTabComponent, BlocTabModule } from '@bloc-ui/tab';

Basic

<bloc-tab-group>
    <bloc-tab label="Profile">Profile content</bloc-tab>
    <bloc-tab label="Settings">Settings content</bloc-tab>
    <bloc-tab label="Billing">Billing content</bloc-tab>
</bloc-tab-group>

Manual sizing

<bloc-tab-group class="account-tabs">
    <bloc-tab label="Profile">…</bloc-tab>
    <bloc-tab label="Security">…</bloc-tab>
</bloc-tab-group>
.account-tabs {
    --bloc-tab-padding: 6px 12px;
    --bloc-tab-font-size: 0.8125rem;
    --bloc-tab-body-padding: 12px 0;
}

Disabled tab

<bloc-tab-group>
    <bloc-tab label="Active">…</bloc-tab>
    <bloc-tab label="Disabled" [disabled]="true">…</bloc-tab>
</bloc-tab-group>

Controlled selection

<bloc-tab-group [selectedIndex]="1" (selectedIndexChange)="onTabChange($event)">
    <bloc-tab label="First">…</bloc-tab>
    <bloc-tab label="Second">…</bloc-tab>
</bloc-tab-group>

BlocTabGroupComponent inputs

| Input | Type | Default | Description | | --------------- | -------- | ------- | --------------------------------- | | selectedIndex | number | 0 | Index of the initially active tab |

Outputs

| Output | Type | Description | | --------------------- | -------- | --------------------------------- | | selectedIndexChange | number | Emits when the active tab changes |

BlocTabComponent inputs

| Input | Type | Default | Description | | ---------- | --------- | ------- | --------------------------- | | label | string | — | Tab header label | | disabled | boolean | false | Whether the tab is disabled |


CSS tokens

| Token | Fallback | Description | | ------------------------- | ------------------------------ | --------------------------- | | --bloc-tab-header-gap | 0 | Gap between tab buttons | | --bloc-tab-border | var(--bloc-border, #d1d5db) | Header bottom border colour | | --bloc-tab-padding | 10px 16px | Tab button padding | | --bloc-tab-font-size | 0.875rem | Tab button font size | | --bloc-tab-color | #6b7280 | Inactive tab text colour | | --bloc-tab-hover-color | #374151 | Tab hover text colour | | --bloc-tab-indicator | var(--bloc-primary, #6b7280) | Active tab indicator colour | | --bloc-tab-active-color | var(--bloc-primary, #374151) | Active tab text colour | | --bloc-tab-focus-ring | var(--bloc-primary, #6b7280) | Focus ring colour | | --bloc-tab-body-padding | 16px 0 | Tab body padding |


Accessibility

  • Active panel uses role="tabpanel".
  • Focus-visible outline on tab buttons.
  • Disabled tabs are visually indicated and non-interactive.

Theming

All visual tokens (--bloc-primary, --bloc-surface, colour scales, dark-mode) are provided by the optional @bloc-ui/theme package. The tab group works without it — neutral fallbacks are applied automatically.


License

MIT