6.1.0 • Published 4 years ago
@comparaonline/ui-offer-banner v6.1.0
ui-offer-banner
This component will render an informative banner for the app
Installation
yarn add @comparaonline/ui-offer-banner
##Usage
import Banner from '@comparaonline/ui-offer-banner';
class MyView extends React.Component {
render() {
return (
<Banner>
<Grid container>
<Grid item>
<img src="http://example.com/image.jpg" />
</Grid>
<Grid item>This is the message I want to show you</Grid>
</Grid>
</Banner>
);
}
}
Prop Name | Description | Default Value | Expected Type Value | Required |
---|---|---|---|---|
open | boolean flag to tell to component if is open or not | undefined (false) | boolean | false |
onClose | a function that will be invoked when X icon is clicked | undefined | () => void | false |
children | The content to shown into the banner | undefined | ReactNode | false |
## Happy coding :sunglasses:
6.1.0
4 years ago
5.4.14
6 years ago
5.4.11
6 years ago
5.4.9
6 years ago
5.4.8
6 years ago
5.4.4
6 years ago
5.4.3
6 years ago
5.1.2
6 years ago
4.9.1
6 years ago
4.9.0
6 years ago
4.8.5
6 years ago
4.8.4
6 years ago
4.8.2
6 years ago
4.7.1
6 years ago
4.7.0
6 years ago
4.6.0
6 years ago
4.5.0
6 years ago
4.4.0
6 years ago
4.3.3
6 years ago
4.3.2
6 years ago
4.3.1
6 years ago
4.3.0
6 years ago
4.2.3
6 years ago
4.1.1
6 years ago
4.1.0
6 years ago
4.0.5
6 years ago
4.0.4
6 years ago
3.5.2
6 years ago
3.5.1
6 years ago