Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

react-inline-block

2.1.3 • Public • Published

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

Install

npm i react-inline-block

DownloadsWeekly Downloads

1,479

Version

2.1.3

License

MIT

Last publish

Collaborators

  • avatar