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-blazecss

v0.4.3

Published

React components for BlazeCSS

Downloads

16

Readme

React BlazeCSS

Travis react-blazecss Coveralls MIT licensed

React components for BlazeCSS

Preview

Please visit the demo/documentation website, it has live code and preview so is perfect for testing and playing around.

Installation

npm install react-blazecss --save

Please note that this is an early and experimental release. Most components should work perfectly fine but the API might change over time.

Note that ReactBlazeCSS doesn't include any CSS by default, so you'll have to manually add BlazeCSS. This is done so that you can use custom builds or themes if required.

Add the following to your <head></head> :

<link rel="stylesheet" href="https://cdn.jsdelivr.net/blazecss/latest/blaze.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/blazecss/latest/blaze.animations.min.css">

or just npm install blaze and :

require('blaze/dist/blaze.min.css')
require('blaze/dist/blaze.animations.min.css')

Usage

All of the components are directly exposed by react-blazecss.

import { Drawer, Menu, MenuItem, H4 } from 'react-blazecss'

and use

<Drawer shadow="high" visible>
  <H4>Drawer header</H4>
  <Menu>
    <MenuItem>Menu 1</MenuItem>
    <MenuItem>Menu 2</MenuItem>
  </Menu>
  <DrawerBody>Drawer body</DrawerBody>
</Drawer>

If you don't want to include all of ReactBlazeCSS, you can also do selective imports :

import { Drawer } from 'react-blazecss/Drawer'
import { Menu, MenuItem } from 'react-blazecss/Menu'
import { H4 } from 'react-blazecss/Heading'

Why ?

BlazeCSS is a clean Open source modular CSS framework.

It's key selling features are already on their website, but an important aspect for us is that it's opt-in and won't take control of the rest of the design.

It's also pure CSS, and additional behavior (for tabs, etc.) can be added cleanly in React.

However, the main goal is for react-blazecss to remain a simple wrapper for BlazeCSS. More complex components will be released as separate packages to avoid bloating the core package (for example a plug'n'play Calendar component using moment.js).

Implemented Components (more coming soon)

  • Alerts
  • Badges
  • Blockquotes
  • Bubbles
  • Buttons
  • Calendars
  • Containers
  • Drawers
  • DropdownButtons (WIP)
  • Grids
  • Headings
  • Images
  • Lists
  • Menus
  • Navs
  • Overlays
  • Pagination
  • Tables
  • Tabs
  • Tags
  • Toggles
  • Trees

Example

The following code was used to render the previous screenshot.

<div>
  <Nav inline>
    <NavContent centered>My APP</NavContent>
    <NavItem bStyle="success" active>Home</NavItem>
    <NavItem right>Menu</NavItem>
    <NavItem right bStyle="primary">Settings</NavItem>
  </Nav>
  <Grid>
    <Cell md="50" sm="100">
      <Tabs defaultActiveKey={1} animate bStyle="primary">
        <Tab eventKey={1} title="Tab 1">
            Tab 1 content, with useless buttons :<br />
            <ButtonGroup rounded>
                <Button bStyle="success">Action 1</Button>
                <Button bStyle="success" ghost>Action 2</Button>
            </ButtonGroup>
        </Tab>
        <Tab eventKey={2} title={<span>Tab 2 <Badge>click me</Badge></span>}>
            Tab 2, pretty much empty
        </Tab>
        <Tab eventKey={3} title="Tab 3" disabled>Tab 3 content</Tab>
      </Tabs>
    </Cell>
    <Cell md="50" sm="100">
      <H3 size="medium">
        <Toggle bStyle="primary" style={{float: 'right'}} />
        Notifications
      </H3>
      <Alerts>
        <Alert bStyle="primary">Primary alert</Alert>
        <Alert bStyle="secondary">Secondary alert</Alert>
        <Alert bStyle="error">Error !</Alert>
      </Alerts>
      </Cell>
  </Grid>
</div>

License

Licensed under the MIT license

Made with ♥ by @GregoryPotdevin at AppCraft