@nteract/styled-blueprintjsx
TypeScript icon, indicating that this package has built-in type declarations

2.1.0 • Public • Published

styled-blueprintjsx

This package wraps up Blueprint styles as a styled-components global style to subvert the need for a CSS loader.

import { BlueprintCSS } from "@nteract/styled-blueprintjsx

<React.Fragment>
  <SuperCoolComponent />
  <BlueprintCSS />
</React.Fragment>

Installation

npm install --save @nteract/styled-blueprintjsx

Documentation

With @blueprintjs/core

When working with @blueprintjs/core components, they need some globally defined (yet scoped) CSS. You can include this on the page with

import { BlueprintCSS } from "@nteract/styled-blueprintjsx

<React.Fragment>
  <SuperCoolComponent />
  <BlueprintCSS />
</React.Fragment>

With @blueprintjs/select

For @blueprintjs/select's suite of components, you need to include <BlueprintSelectCSS /> from this package.

import { BlueprintCSS, BlueprintSelectCSS } from "@nteract/styled-blueprintjsx

<React.Fragment>
  <SuperCoolComponent />
  <BlueprintCSS />
  <BlueprintSelectCSS />
</React.Fragment>

styled-blueprintjsx makes use of createGlobalStyle from styled-components and so is a React Component you can render anywhere in your app. You can read more about this pattern in the styled-components docs linked above.

Support

Please post an issue on the issue tracker.

License

BSD-3-Clause

/@nteract/styled-blueprintjsx/

    Package Sidebar

    Install

    npm i @nteract/styled-blueprintjsx

    Weekly Downloads

    1,128

    Version

    2.1.0

    License

    BSD-3-Clause

    Unpacked Size

    349 kB

    Total Files

    9

    Last publish

    Collaborators

    • hydrosquall
    • benabel
    • alexandercbooth
    • benrussert
    • mpacer
    • theengineear
    • yuvipanda
    • rgbkrk
    • lgeiger
    • ivanov
    • captainsafia
    • peggyrayzis
    • jdetle
    • hasch
    • willingc
    • stormpython
    • crystalline-cat
    • emeeks