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/accordion

v1.0.6

Published

Collapsible accordion for Angular with single/multi-open modes and keyboard navigation.

Readme

@bloc-ui/accordion

Latest: v1.0.6

Collapsible accordion component for Angular with single-open and multi-open modes, keyboard navigation, optional chevron icon, and disabled item support.

Live Documentation & Demos


Installation

npm install @bloc-ui/accordion

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


Selectors / API

| Export | Selector | Type | Description | | ------------------------------- | ------------------------ | --------- | ----------------------------------------------- | | BlocAccordionComponent | bloc-accordion | Component | Accordion container; controls single/multi mode | | BlocAccordionItemDirective | [blocAccordionItem] | Directive | Marks a panel as an accordion item | | BlocAccordionTriggerDirective | [blocAccordionTrigger] | Directive | The clickable trigger button for an item | | BlocAccordionContentDirective | [blocAccordionContent] | Directive | The collapsible content region | | BlocAccordionChevronDirective | [blocAccordionChevron] | Directive | Marks a custom icon element as the chevron |


Usage

Basic (single-open)

import {
    BlocAccordionComponent,
    BlocAccordionItemDirective,
    BlocAccordionTriggerDirective,
    BlocAccordionContentDirective,
} from '@bloc-ui/accordion';
<bloc-accordion class="gap-3">
    <div blocAccordionItem [expanded]="true">
        <button blocAccordionTrigger>Overview</button>
        <div blocAccordionContent>Summary content goes here.</div>
    </div>
    <div blocAccordionItem>
        <button blocAccordionTrigger>Details</button>
        <div blocAccordionContent>More detail goes here.</div>
    </div>
</bloc-accordion>

Multi-open

<bloc-accordion [multi]="true" class="gap-3">
    <div blocAccordionItem [expanded]="true">
        <button blocAccordionTrigger>Design tokens</button>
        <div blocAccordionContent>Keep spacing and typography in sync.</div>
    </div>
    <div blocAccordionItem [expanded]="true">
        <button blocAccordionTrigger>Accessibility</button>
        <div blocAccordionContent>Preserve semantic structure and keyboard affordances.</div>
    </div>
</bloc-accordion>

Disabled item

<bloc-accordion class="gap-3">
    <div blocAccordionItem>
        <button blocAccordionTrigger>Enabled section</button>
        <div blocAccordionContent>This section works normally.</div>
    </div>
    <div blocAccordionItem [disabled]="true">
        <button blocAccordionTrigger>Disabled section</button>
        <div blocAccordionContent>This content cannot be reached.</div>
    </div>
</bloc-accordion>

Inputs — BlocAccordionComponent

| Input | Type | Default | Description | | ------- | --------- | ------- | --------------------------------------------------- | | multi | boolean | false | When true, multiple items can be expanded at once |

Inputs — BlocAccordionItemDirective

| Input | Type | Default | Description | | ---------- | --------- | ------- | ------------------------------------ | | expanded | boolean | false | Initial expanded state of this item | | disabled | boolean | false | Prevents the item from being toggled |

Inputs — BlocAccordionTriggerDirective

| Input | Type | Default | Description | | --------- | --------- | ------- | --------------------------------------- | | chevron | boolean | true | Shows or hides the default chevron icon |


CSS Tokens

| Token | Fallback | Description | | ---------------------------------- | --------- | ------------------------ | | --bloc-accordion-border | #d1d5db | Panel border colour | | --bloc-accordion-header-hover-bg | #f3f4f6 | Trigger hover background | | --bloc-accordion-focus-ring | #9ca3af | Focus outline colour | | --bloc-accordion-title-color | #374151 | Trigger text colour | | --bloc-accordion-color | #374151 | Content text colour |