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

@react-tiny-grid/core

v0.1.7

Published

A simple, lightweight grid system for React

Readme

Table of Contents

Getting Started

To get started, just install @react-tiny-grid/core using NPM or Yarn.

npm install --save @react-tiny-grid/core
yarn add @react-tiny-grid/core

Usage

To start using React Tiny Grid, simply import the Row and Column components from @react-tiny-grid/core.

import { Row, Column } from '@react-tiny-grid/core';

Minimal Configuration

React Tiny Grid works out-of-the-box, so all you have to do is wrap each Column with a Row.

<Row>
   <Column />
   <Column />
   <Column />
   <Column />
   <Column />
   <Column />
</Row>

React Tiny Grid will automatically resize each column, without letting any child element overflow. The Row component will wrap the columns if needed.

Custom Breakpoints and Widths

You can specify certain widths for each column at different screen sizes. First, pass in a breakpoints prop to the Row component. This prop accepts an array of up to 3 breakpoints.

<Row breakpoints={[769, 960]} />

Then, you pass in a widths prop to each Column component. The value of this prop has to be an array with a length equal to the breakpoints array.

<Row breakpoints={[769, 960]}>
   <Column widths={[4, 3]} />
   <Column widths={[8, 9]} />
</Row>

Custom Spacing

You can change the vertical and horixontal gap between the columns using the spacing prop. This accepts an array of 2 numbers; the horizontal spacing (in px) and the vertical spacing.

<Row spacing={[12, 24]} />

You can also pass in one number, which will set both the horizontal and vertical spacing.

<Row spacing={12} />

React Tiny Grid also gives you the option to override the spacing for individual columns. Just pass a spacing prop to the Column component you want to override.

<Column spacing={[12, 24]} />

Max Columns Per Row

In some cases, you'll want to limit the number of columns that can appear in one row (usually using the auto layout). You can do this by passing a single number to the maxColumnCount on the Row component.

<Row maxColumnCount={3} />

Column Offsets

You can also offset each column by using the offsets prop. This prop accepts an array of numbers equal in length to the breakpoints array defined in the Row component. The value must be a number between 1 and 12.

<Row breakpoints={[576, 769]}>
   <Column widths={[4, 4]} offsets={[1, 0]} />
   <Column widths={[3, 6]} offsets={[1, 0]} />
   <Column widths={[3, 7]} offsets={[4, 1]} />
   <Column widths={[6, 3]} />
   <Column widths={[3, 9]} />
   <Column widths={[4, 4]} />
</Row>

In the above example, the first and second columns will be offset by one column between 576px and 769px. After 769px, however, they will have no offset.

Accepted Props

Row Props

| Name | Type | Default | Description | | :--------------- | :----- | :------- | :---------------------------------------------- | | className | string | '' | Give the wrapper a class name to style via CSS | | id | string | '' | See above, but it's an ID this time | | breakpoints | array | [769] | Set up to three custom breakpoints for the grid | | spacing | array | [12, 12] | Set the horizontal and vertical gutter width | | maxColumnCount | number | 12 | Limit the number of columns per row |

Column Props

| Name | Type | Default | Description | | :---------- | :----- | :------- | :----------------------------------------------------------------------------- | | className | string | '' | Give the wrapper a class name to style via CSS | | id | string | '' | See above, but it's an ID this time | | widths | array | ['auto'] | Set the number of columns taken up for each breakpoint | | spacing | array | [12, 12] | Set the horizontal and vertical gutter width. Overrides the Row spacing prop | | widths | array | ['auto'] | Set the number of columns to offset the wrapper by. |

Support

React Tiny Grid is always improving. If you've got any issues or bugs, please create an issue here on Github. If you've got questions, you can email me at [email protected]