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

v0.0.4

Published

> **Latest:** v0.0.4

Readme

@bloc-ui/table

Latest: v0.0.4

Lightweight, declarative data table component for Angular — part of the Bloc UI component library. Supports striped rows, bordered cells, hover highlighting, size presets, and custom cell templates.

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

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


Usage

import {
    BlocTableComponent,
    BlocColumnComponent,
    BlocCellDefDirective,
    BlocTableModule,
} from '@bloc-ui/table';

Basic table

<bloc-table [data]="users">
    <bloc-column field="name" header="Name" />
    <bloc-column field="email" header="Email" />
    <bloc-column field="role" header="Role" />
</bloc-table>

Variants

<!-- Striped rows -->
<bloc-table [data]="users" [striped]="true">…</bloc-table>

<!-- Bordered cells -->
<bloc-table [data]="users" [bordered]="true">…</bloc-table>

<!-- Hoverable rows -->
<bloc-table [data]="users" [hoverable]="true">…</bloc-table>

<!-- Size: sm / md (default) / lg -->
<bloc-table [data]="users" size="sm">…</bloc-table>

Custom cell template

<bloc-table [data]="users">
    <bloc-column field="status" header="Status">
        <ng-template blocCellDef let-value let-row="row">
            <span [class]="value === 'Active' ? 'text-green-600' : 'text-red-500'">
                {{ value }}
            </span>
        </ng-template>
    </bloc-column>
</bloc-table>

BlocTableComponent inputs

| Input | Type | Default | Description | | ----------- | --------------------------- | ------- | ----------------------- | | data | Record<string, unknown>[] | [] | Array of row objects | | striped | boolean | false | Alternating row stripes | | bordered | boolean | false | Show cell borders | | hoverable | boolean | false | Highlight rows on hover | | size | 'sm' \| 'md' \| 'lg' | 'md' | Table density preset |

BlocColumnComponent inputs

| Input | Type | Default | Description | | -------- | -------- | ------- | -------------------------------- | | field | string | — | Object key to read from each row | | header | string | '' | Column header label |


CSS tokens

| Token | Fallback | Description | | ------------------------- | ----------------------------- | ---------------------- | | --bloc-table-th-padding | 10px 14px | Header cell padding | | --bloc-table-td-padding | 10px 14px | Body cell padding | | --bloc-table-font-size | 0.8125rem | Table font size | | --bloc-table-th-color | #374151 | Header text colour | | --bloc-table-th-bg | transparent | Header background | | --bloc-table-td-color | #6b7280 | Body text colour | | --bloc-table-border | var(--bloc-border, #d1d5db) | Border colour | | --bloc-table-stripe-bg | #f9fafb | Striped row background | | --bloc-table-hover-bg | #f3f4f6 | Hovered row background |


Custom cell templates

The blocCellDef directive provides the implicit template context:

| Variable | Type | Description | | ----------- | ------------------------- | ----------------------------- | | $implicit | unknown | The cell value (row[field]) | | row | Record<string, unknown> | The full row object |


Accessibility

  • Renders semantic <table>, <thead>, <tbody>, <tr>, <th>, and <td> elements.
  • Responsive overflow wrapper on the host element.

Theming

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


License

MIT