3.0.1 • Published 3 years ago

material-ui-banner v3.0.1

Weekly downloads
807
License
MIT
Repository
github
Last release
3 years ago

material-ui-banner

Bringing the Material Design banner component to the material-ui library. Spec here: https://material.io/design/components/banners.html

Installation

npm install material-ui-banner --save

Usage

Imports:

import { Banner, StaticBanner } from 'material-ui-banner';

To embed a banner anywhere on the page

<Banner
  icon={<div />}
  label="Text goes here"
  open
/>

To add a static banner to the top of the page

<AppBar>
  <Toolbar />
</AppBar>

<StaticBanner />

You would then open the banner elsewhere in the app like so:

StaticBanner.show({
  icon: <div />,
  label: 'This is an example of a static banner with one line of text.',
});

Please refer to src/demo for examples.

Options

These options are compatible with both <Banner> and StaticBanner.show()

License

Uses the MIT License

3.0.1

3 years ago

3.0.0

3 years ago

2.1.2

3 years ago

2.1.1

3 years ago

2.1.4

3 years ago

2.1.3

3 years ago

2.1.5

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.4.3

4 years ago

1.4.2

4 years ago

1.4.1

4 years ago

1.4.0

4 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.3.0-beta2

5 years ago

1.3.0-beta1

5 years ago

1.3.0-beta0

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

6 years ago