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

@catalyst-cli/catalyst-tab-group

v1.0.6

Published

A powerful and flexible generic tab component for Angular applications, built with modern Angular features (Signals, Standalone Components). This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 21.0.4.

Downloads

138

Readme

@catalyst-cli/catalyst-tab-group

A powerful and flexible generic tab component for Angular applications, built with modern Angular features (Signals, Standalone Components). This library was generated with Angular CLI version 21.0.4.

Installation

npm i @catalyst-cli/catalyst-tab-group

Demo

Click here for live demo

Features

  • Standalone Components: No module imports required.
  • Orientation Support: Supports both horizontal and vertical tab layouts.
  • Signals Based: Built using Angular Signals for optimal performance and change detection.
  • Responsive: Automatic scrolling for overflow tabs with touch support.
  • Prefix & Suffix Slots: Project custom content (like icons, buttons, or badges) to the left or right of the tab bar.
  • Customizable: Full control over styling via CSS classes.
  • Accessible: Built with ARIA attributes and keyboard navigation support.

Usage

1. Import the components

Import CatalystTabGroup and CatalystTabComponent in your standalone component or module:

import { Component, signal } from '@angular/core';
import {
  CatalystTabGroup,
  CatalystTabComponent,
  TabGroupConfig,
} from '@catalyst-cli/catalyst-tab-group';

@Component({
  selector: 'app-root',
  standalone: true,
  imports: [CatalystTabGroup, CatalystTabComponent],
  template: `
    <catalyst-tab-group [tabGroupConfig]="tabConfig" [(selectedIndex)]="selectedIndex">
      <!-- Optional: Add custom content to the left of tabs -->
      <div tabPrefix>
        <button>Search</button>
      </div>

      <!-- Optional: Add custom content to the right of tabs -->
      <div tabSuffix>
        <button>Settings</button>
      </div>

      <catalyst-tab label="First Tab">
        <div class="content">First Tab Content</div>
      </catalyst-tab>

      <catalyst-tab label="Second Tab">
        <div class="content">Second Tab Content</div>
      </catalyst-tab>
    </catalyst-tab-group>
  `,
})
export class AppComponent {
  // Optional configuration
  tabConfig: TabGroupConfig = {
    position: 'horizontal', // 'horizontal' | 'vertical'
    taClass: 'my-custom-tab-class', // Custom class for tab container
    coClass: 'my-custom-content-class', // Custom class for content area
  };

  // Two-way bound selected index
  selectedIndex = signal(0);
}

2. Use in your template

<catalyst-tab-group
  [tabGroupConfig]="tabConfig"
  [(selectedIndex)]="selectedIndex"
  (selectedIndexChange)="onTabChange($event)"
>
  <catalyst-tab label="First Tab">
    <div class="p-4">
      <h3>First Tab Content</h3>
      <p>This is the content for the first tab.</p>
    </div>
  </catalyst-tab>

  <catalyst-tab label="Second Tab">
    <div class="p-4">
      <h3>Second Tab Content</h3>
      <p>This is the content for the second tab.</p>
    </div>
  </catalyst-tab>
</catalyst-tab-group>

You can also use a simple static label:

<catalyst-tab-group>
  <catalyst-tab label="Simple"> Content goes here... </catalyst-tab>
</catalyst-tab-group>

API

CatalystTabGroup (<catalyst-tab-group>)

| Input | Type | Default | Description | | ---------------- | ---------------- | ------------------------------------------------------ | ------------------------------------------------------------------------------------ | | tabGroupConfig | TabGroupConfig | { position: 'horizontal', taClass: '', coClass: '' } | Configuration object for layout and styling. | | selectedIndex | number | 0 | The index of the currently active tab. Supports two-way binding [(selectedIndex)]. |

Content Projection (Slots)

  • [tabPrefix]: Projects content to the left side of the tab bar (horizontal orientation only).
  • [tabSuffix]: Projects content to the right side of the tab bar (horizontal orientation only).

CatalystTabComponent (<catalyst-tab>)

| Input | Type | Required | Description | | ------- | -------- | -------- | ------------------------------------------- | | label | string | Yes | The label text displayed in the tab header. |

TabGroupConfig Interface

interface TabGroupConfig {
  position: 'horizontal' | 'vertical';
  taClass: string; // Custom CSS class for the tab header container
  coClass: string; // Custom CSS class for the tab content container
}

Styling

You can deeply customize the appearance by passing custom classes via taClass (for the tab list) and coClass (for the content area) in the tabGroupConfig.

Example SCSS to override default styles:

// In your global styles or component styles (using ::ng-deep)
::ng-deep .my-custom-tab-class {
  background-color: #f5f5f5;

  li {
    color: #666;

    &.active {
      border-bottom: 2px solid #667eea;
      color: #667eea;
      font-weight: bold;
    }
  }
}