3.0.1 • Published 4 years ago
material-ui-banner v3.0.1
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
4 years ago
3.0.0
4 years ago
2.1.2
4 years ago
2.1.1
4 years ago
2.1.4
4 years ago
2.1.3
4 years ago
2.1.5
4 years ago
2.0.1
4 years ago
2.0.0
4 years ago
1.4.3
5 years ago
1.4.2
5 years ago
1.4.1
5 years ago
1.4.0
5 years ago
1.3.1
6 years ago
1.3.0
6 years ago
1.3.0-beta2
6 years ago
1.3.0-beta1
6 years ago
1.3.0-beta0
6 years ago
1.2.1
6 years ago
1.2.0
6 years ago
1.1.4
6 years ago
1.1.3
6 years ago
1.1.2
6 years ago
1.1.1
6 years ago
1.1.0
6 years ago
1.0.0
7 years ago