0.4.0 • Published 10 months ago

@hods/status-message v0.4.0

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

HODS - Status message

An indication to the user that something has changed.

Using this package

First install the package into your project:

npm install -S @hods/status-message

Then use it in your code as follows:

import React, { createElement as h } from 'react';
import StatusMessage from '@hods/status-message';

export const MyComponent = props => (
  <StatusMessage
    status="On hold"
    actions={<A href="#">Review</A>}
  >
    due for review 10 March 2018
  </StatusMessage>
);

export default MyComponent;

Examples of use

Some basic examples of this component can be seen in the main docs for the monorepo.

Working on this package

Before working on this package you must install its dependencies using the following command:

pnpm install

Testing

Unit tests can be run in the usual manner:

npm test

For visual checks of the fully rendered and styled component, run storybook:

npm run storybook

Once storybook is running, open the Status Message page in your browser.

Building

npm run build

Clean-up

npm run clean
0.4.0

10 months ago

0.3.6

2 years ago

0.3.7

2 years ago

0.3.0

2 years ago

0.3.5

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.3.4

2 years ago

0.3.3

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.20

2 years ago

0.1.19

3 years ago

0.1.17

3 years ago

0.1.18

3 years ago

0.1.16

3 years ago