Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

react-block-ui

Availity33.4kMITdeprecated1.3.6TypeScript support: included

Package no longer supported. Switch to @availity/block-ui

Block UI for react

availity, loader, blockui, redux, react, component, components, react-component, ui

readme

npm version Build Status Coverage Status

react-block-ui

Easy way to block the user from interacting with your UI.

About

This library contains easy to use components to prevent the user from interacting with the user interface based on some conditions.

There is also a separate component which works with redux to help block and unblock automatically based on redux action types. See the ReduxBlockUi component for more details.

Documentation

See: https://availity.github.io/react-block-ui/

Installation

Install react-block-ui via NPM

npm install --save react-block-ui react react-dom

Import the components you need, example:

import BlockUi from 'react-block-ui';
import ReduxBlockUi from 'react-block-ui/redux'; // only for redux
import reduxMiddleware from 'react-block-ui/reduxMiddleware'; // only for redux
import from 'react-block-ui/style.css';

Development

Install dependencies:

npm install

Run examples at http://localhost:8080/ with webpack dev server:

npm start

Run tests:

npm test

Run tests & coverage report:

npm test:coverage

Watch tests:

npm run test:watch

Disclaimer

Open source software components distributed or made available in the Availity Materials are licensed to Company under the terms of the applicable open source license agreements, which may be found in text files included in the Availity Materials.

License

MIT

changelog

1.3.6 (2022-12-22)

1.3.5 (2022-12-07)

1.3.4 (2022-12-06)

Bug Fixes

  • trigger keepInView when container is set (#55) (6123a5f), closes #47

1.3.3 (2020-03-11)

1.3.2 (2019-10-28)

1.3.0 (2019-08-02)

1.2.0 (2019-08-02)

Bug Fixes

  • Tag: account for forwardRef objects (863b7e4)

1.1.4 (2019-06-18)

Bug Fixes

  • BlockUI: allow tag to be components (#27) (7b51125), closes #8
  • focus: ensure elm can be focused/blurred (#22) (4ad7107)

1.1.3 (2018-09-07)

Bug Fixes

  • FocusManagement: fix scroll to top on unlock (#20) (58c9e67)

1.1.2 (2018-07-31)

Bug Fixes

  • activeElement: account for IE suckage (7628259), closes #18

1.1.1 (2017-11-01)

Bug Fixes

  • styles: fix bad comment syntax. (4b4fc68)

Features

1.0.3 (2017-09-07)

Bug Fixes

  • focus: fallback to setTimeout (cd5d8c4), closes #11

1.0.2 (2017-08-04)

1.0.1 (2017-08-04)

Bug Fixes

  • docs: fix generating docs for gh-pages (687f454)
  • npm: fix npm release (ab4ac0b)

1.0.0 (2017-08-03)

0.2.6 (2017-04-17)

0.2.5 (2017-04-04)

Bug Fixes

  • Focus: add helper element to access wrapping element (d62652f), closes #8

0.2.4 (2017-02-01)

Bug Fixes

  • focus: add null check for topFocus (fb1bc3e), closes #5

0.2.3 (2017-01-30)

0.2.2 (2016-11-29)

0.2.1 (2016-11-22)

Bug Fixes

  • deps: fix broken devDep (20e52c5)

0.2.0 (2016-11-22)

Features

  • loader: add ability to specify custom loading content (09de8bf)

0.1.1 (2016-09-07)

Bug Fixes

  • package: include css and redux at root (e70559b)

0.1.0 (2016-09-07)