JSPM

react-inline-block

2.1.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5453
  • Score
    100M100P100Q118097F
  • License MIT

InlineBlock component for React (style.display == "inline-block")

Package Exports

  • react-inline-block

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-inline-block) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

react-inline-block

InlineBlock element for React

A div with display set to inline-block

Install

$ npm i --save react-inline-block

Usage

<InlineBlock>
  hello
</InlineBlock>
// => <div style={{display: 'inline-block'}}> hello </div>

Notes

The inline-block display value is set on the style prop.

The following

<InlineBlock style={{display: 'block'}}> </InlineBlock>

will still render a div with display: inline-block.

Contributing

$ git clone git@github.com:zippyui/react-inline-block.git
$ cd react-inline-block
$ npm install
$ npm run dev

License

MIT