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

worko-react-grid

v3.1.0

Published

Grid to scaffold React apps

Downloads

8

Readme

Worköholics React Grid

Author: Worköholics

React Grid to scaffold Worköholics grid in React apps. You can also use it in Gatsby projects.

Install

npm install --save worko-react-grid

Usage

1. Import grid.scss file in your sass main file.

Override variables

You can override some variables to customize the grid as you want.

$cols: 12 !default;
$gutter: 15px !default;
$safe-area: 90px !default;
$safe-area-xs: 30px !default;
$breakpoint-sm: 576px !default; 
$breakpoint-md: 768px !default;
$breakpoint-lg: 992px !default;
$breakpoint-xl: 1200px !default;

@import "./path/to/node_modules/worko-grid/grid.scss"

2. Import Row and Col components in your React component to use the grid

import {Row, Col} from "worko-react-grid"

3. Use it

const ExampleComponent = () => {
  return (
    //...
    <Row wrap={true}>
      <Col md={5} mdOffset={1}>
        ...
      </Col>
      <Col md={5}>
        ...
      </Col>
    </Row>
    //...
  )  
} 

Components

Row

Parameters

  • wrap (bool): Enable flex-wrap on the Row component

Col

Parameters

  • xs (number): Width set in columns (screen < $breakpoint-sm)
  • sm (number): Width set in columns ($breakpoint-sm < screen < $breakpoint-md)
  • md (number): Width set in columns ($breakpoint-md < screen < $breakpoint-lg)
  • lg (number): Width set in columns ($breakpoint-lg < screen < $breakpoint-xl)
  • xl (number): Width set in columns (screen > $breakpoint-xl)
  • xsOffset (number): Width set in columns (screen < $breakpoint-sm)
  • smOffset (number): Width set in columns ($breakpoint-sm < screen < $breakpoint-md)
  • mdOffset (number): Width set in columns ($breakpoint-md < screen < $breakpoint-lg)
  • lgOffset (number): Width set in columns ($breakpoint-lg < screen < $breakpoint-xl)
  • xlOffset (number): Width set in columns (screen > $breakpoint-xl)
  • xsTotal (number): Total of columns enabled in the row (screen < $breakpoint-sm) (default: 12)
  • smTotal (number): Total of columns enabled in the row ($breakpoint-sm < screen < $breakpoint-md)(default: 12)
  • mdTotal (number): Total of columns enabled in the row($breakpoint-md < screen < $breakpoint-lg) (default: 12)
  • lgTotal (number): Total of columns enabled in the row ($breakpoint-lg < screen < $breakpoint-xl) (default: 12)
  • xlTotal (number): Total of columns enabled in the row (screen > $breakpoint-xl) (default: 12)

Dependencies

  • worko-grid
  • worko-mixins