alert widget for cisco momentum-ui
npm install alert-momentum-ui> alert widget for cisco momentum-ui


``bash`
npm install --save alert-momentum-ui
` export default function InnerPage() {tsx
import React from 'react';
import { AlertBox } from 'alert-momentum-ui';
//important: declare the box at root level of the app!
export default function App() {
return (
);
}
``tsx
// method for fire an alert box
import React from 'react';
import { Button } from "@momentum-ui/react";
import { AlertSuccess, AlertData } from 'alert-momentum-ui';
return (
children="Show Alert"
onClick={() => {
AlertSuccess({
title: "Example",
message: "example message"
} as AlertData);
}}
color="blue"/>