Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

AlertMessage

Rustem Kakimov edited this page Jun 12, 2018 · 2 revisions

API

Property Description Type
type Type of alert style, options: error, success, info, warning string
message Display text string
onClose Callback when alert is closed Function

How to use

    <AlertMessage
        type='error'
        message='This is danger'
        onClose={() => {console.log('onClose has been called')}}
    />
Clone this wiki locally