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

@vaadin-component-factory/vcf-toolbar-layout

v2.0.2

Published

Web Component providing an a toolbar layout with overflow support.

Readme

<vcf-toolbar-layout>

<vcf-toolbar-layout> is a LitElement‑based web component that manages overflowing menu items. It automatically moves overflowing items into a dedicated overflow popover, and it supports keyboard navigation, customizable theming, and grouping of items. While it works best with Vaadin web components, it supports any elements you choose to use.

Features

  • Overflow Handling:
    Automatically moves overflowing menu items into a dedicated popover.
  • Configurable Collapse Debounce:
    The updateDebounceDelay property sets the debounce delay (in milliseconds) from when a resize event occurs until the overflow items are updated.
  • Reverse Collapse:
    When the reverse-collapse attribute is set, the component collapses items from the left side instead of the right.
  • Theming:
    Two additional themes are provided (applied via the theme attribute):
    • fixed-width-prefix – aligns overflow popover items uniformly regardless of whether they include a prefix icon.
    • hide-icons – automatically hides icons on items within the overflow popover.
  • Keyboard Navigation:
    Complete keyboard support for menu navigation.
  • Grouping Items:
    Group items by passing in a layout/container element; grouped items collapse and display together in the overflow popover.

Installation

Install the component via npm:

npm install @vaadin-component-factory/vcf-toolbar-layout

Usage

After installing, import the component into your application:

import '@vaadin-component-factory/vcf-toolbar-layout';

Basic Usage

<vcf-toolbar-layout>
  <vaadin-button>Button 1</vaadin-button>
  <vaadin-button>Button 2</vaadin-button>
  <vaadin-button>Button 3</vaadin-button>
</vcf-toolbar-layout>

Custom Overflow Button

<vcf-toolbar-layout>
  <vaadin-button slot="overflow-button">View overflow items</vaadin-button>
</vcf-toolbar-layout>

Reverse Collapse and Debounce Delay

<vcf-toolbar-layout reverse-collapse update-debounce-delay="100">
  <vaadin-button>Left 1</vaadin-button>
  <vaadin-button>Left 2</vaadin-button>
</vcf-toolbar-layout>

Grouped Items

<vcf-toolbar-layout>
  <div>
    <vaadin-button>Grouped A</vaadin-button>
    <vaadin-button>Grouped B</vaadin-button>
  </div>
  <vaadin-button>Solo</vaadin-button>
</vcf-toolbar-layout>

Theming

Fixed Width Prefix

<vcf-toolbar-layout theme="fixed-width-prefix">
  <vaadin-button theme="icon">
    <vaadin-icon icon="vaadin:edit" slot="prefix"></vaadin-icon>
    Edit
  </vaadin-button>
  <vaadin-button>
    Save
  </vaadin-button>
</vcf-toolbar-layout>

Hide Icons

<vcf-toolbar-layout theme="hide-icons">
  <vaadin-button theme="icon">
    <vaadin-icon icon="vaadin:trash" slot="prefix"></vaadin-icon>
    Delete
  </vaadin-button>
  <vaadin-button theme="icon">
    <vaadin-icon icon="vaadin:download" slot="prefix"></vaadin-icon>
    Download
  </vaadin-button>
</vcf-toolbar-layout>

Property Details

  • reverseCollapse (Boolean):
    When set (or used as the reverse-collapse attribute), the component collapses items from the left side.

  • updateDebounceDelay (Number):
    Sets the debounce delay (in milliseconds) from when a resize event occurs until the overflow items are updated—useful for managing performance during rapid resizes.

Running the Demo

Clone the repository and install dependencies:

npm install
npm start

A demo page will launch in your browser, showcasing how <vcf-toolbar-layout> handles overflow, reverse collapse, theming, grouping, and keyboard navigation.

Contributing

Contributions are welcome! Please review our contributing guidelines before submitting pull requests.

License

Distributed under the Apache License 2.0. See LICENSE for details.

Sponsored Development

Major pieces of this component’s development have been sponsored by multiple Vaadin customers. Learn more about our support and pricing at Vaadin Pricing.