Alert
Flexible Alert Component
import { Alert } from '@wigxel/react-components/lib/alert';<Alert message="You're account has been created successfully" />/** Passed as message prop **/
<Alert message='hello Wigxel Alert component'/>
/** Passed as children prop **/
<Alert>Hello Wigxel Alert component</Alert>Alert.propTypes = {
// The icon to be displayed
icon: t.node,
// shows or hides the modal
type: t.string,
// toggles the box-shadow
shadow: t.bool,
// function that gets called when the close button is closed.
onClose: t.func,
// The text to be displayed within the Alert
message: t.string,
// Optional, when message prop is provide
children: t.node,
}Type Prop
Shadow Prop
onClose prop
Collapsible prop
Icon props
Last updated