4.0.1 • Published 3 years ago

@flive/react-ui-states v4.0.1

Weekly downloads
12
License
SEE LICENSE IN LI...
Repository
-
Last release
3 years ago

react-ui-states

This React module to use some of the best practises about the different states of an user interface

Install

npm install @flive/react-ui-states

Code example

// success state
<UIStates data={{ name: 'Hello'}} loadingMessage="Loading some stuff" loading={loading} error={error} >
  ({ data }) => {
    <Paragraph>data.name<Paragraph/>
  }
</UIStates>

// loading state
<UIStates loading={true} loadingMessage="Loading some stuff" />

// error state
<UIStates
  error={new Error('some error')}
  errorMessage="Ooops something went wrong!"
/>

// blank state
<UIStates
  data={[]}
  blankMessage="Looks like there is something to see there"
/>

Licence

This project is licensed under a custom license. See the LICENSE file for details.

4.0.1

3 years ago

4.0.0

3 years ago

3.0.0

3 years ago

2.1.0

3 years ago

2.0.0

4 years ago

1.1.0

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago