6.1.0 • Published 3 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
3 years ago
5.4.14
4 years ago
5.4.11
4 years ago
5.4.9
4 years ago
5.4.8
4 years ago
5.4.4
5 years ago
5.4.3
5 years ago
5.1.2
5 years ago
4.9.1
5 years ago
4.9.0
5 years ago
4.8.5
5 years ago
4.8.4
5 years ago
4.8.2
5 years ago
4.7.1
5 years ago
4.7.0
5 years ago
4.6.0
5 years ago
4.5.0
5 years ago
4.4.0
5 years ago
4.3.3
5 years ago
4.3.2
5 years ago
4.3.1
5 years ago
4.3.0
5 years ago
4.2.3
5 years ago
4.1.1
5 years ago
4.1.0
5 years ago
4.0.5
5 years ago
4.0.4
5 years ago
3.5.2
5 years ago
3.5.1
5 years ago