node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

@gov.au/page-alerts

@gov.au/page-alerts

Use page alerts to notify users of important information and state changes to the page.

Contents


Install

yarn add @gov.au/page-alerts
npm install @gov.au/page-alerts --save-dev

⬆ back to top


Usage

⬆ back to top


React

Usage:

import Button from './page-alerts.js';
 
<PageAlert as='info'>
    Content of alert
</PageAlert>

All props:

<PageAlert
    as="info"  {/* One of four kinds: 'info', 'success', 'warning', 'error' */}
>
    Content of alert
</PageAlert>

For more details have a look at the usage example.

⬆ back to top


Dependency graph

page-alerts
└─ core

⬆ back to top


Build

⬆ back to top


Tests

⬆ back to top


Release History

  • v0.3.0 - Added pancake-react plugin, ES5 main file
  • v0.2.0 - Added react component
  • v0.1.1 - Improved print styles
  • v0.1.0 - 💥 Initial version

⬆ back to top


License

Copyright (c) Commonwealth of Australia. Licensed under MIT.

⬆ back to top

};