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 🙏

© 2024 – Pkg Stats / Ryan Hefner

react-cello

v0.0.76

Published

table like cell collection with various controls

Downloads

51

Readme

React Cello

See the wiki for release notes.

See the demo to play around.

Overview

A component library and basic styling which allows for a table-like collection of cells which support controls such as tabbing and arrow navigation (left, right up, down), as well as multiple states for cells, which can be toggled through with Ctrl + shift + right arrow, Ctrl + shift + left arrow.

Components

Cells

  • A cell can hold multiple states. Possible states must be registered, and given a component for the cell to render in that state.
  • Cell state can be changed via Ctrl + right arrow, Ctrl + left arrow. The cell also exposes setMode and getMode methods.
  • Properties include canSelect.
  • Cells dispatch onSelect and onDeselect events.
  • Cells can be programmatically selected with select and deselect methods.
  • Cells with multiple states show an indicator that a next state can be selected (an arrow for either direction).
  • Cell states apply classes to the cell based on that state.
  • Can pass carousel argument to allow states to be toggled as carousel rather than starting / ending at last state.

HeaderCells

  • A cell which implements only a single state, and takes either a text value or component to render in that basic state.
  • Header cells can not be selected.

Rows

  • A row is a collection of n cells rendered on the x axis.
  • If onRemoveRow property is provided, controls for removing the row are provided.
  • Table refs include removeRowButton.

Table

  • A Table is a collection of rows.
  • Tables can be nested within cells. In this case, tabbing / arrow controls will delegate control from an outer table to an inner table. This is done through communication at the cell level.
  • Table takes a headers property and a rows property. These properties must be arrays of equal length.
  • Table refs include headers, rows, and addRowButton.
  • Can pass cellCarousel argument to allow states on contained cells to be toggled as carousel rather than starting / ending at last state.