Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor() {
super();
this.bannerAlerts = [
{
show: true,
message: 'Neutral alert with dismiss option.',
type: ALERT_TYPES.NEUTRAL,
},
{
show: true,
message: 'Successful alert with dismiss option.',
type: ALERT_TYPES.SUCCESS,
},
{
show: true,
message: 'Warn alert with dismiss option.',
type: ALERT_TYPES.WARN,
},
{
show: true,
message: 'Error alert with dismiss option.',
type: ALERT_TYPES.ERROR,
},
];
this.state = {
bannerAlerts: JSON.parse(JSON.stringify(this.bannerAlerts)),
dirty: false,
render(): Node {
return (
<div>
</div>
);
}
}
}
const components = [
{
id: 'default',
title: 'Default',
blurb: [
Banner alerts come in four styles to indicate success, warning or error,
or some neutral information.
,
],
examples: [
,
,
,
,
,
],
},
{
id: 'expandable',
title: 'Expandable',
blurb: [
They can be configured to display further information to the user in the
form of an expandable panel.
,
],
examples: [