Skip to main content

Alert

A widget to show alert

  • props
PropertyDescriptionTypeDefault
stylecustomize style of alert containerany-
textStylecusomize style for alert textany-
typealert typesuccess | info | warning | error | invalid-
textalert textstring-
childrenalert contentReactNode-
<Alert
style={{ width: 300, marginTop: 12 }}
type={'success'}
text={'Success Alert Success Alert Success Alert Success Alert Success Alert Success Alert '}
/>
<Alert
style={{ width: 300 , marginTop: 12}}
type={'info'}
text={'Info Alert Info Alert Info Alert Info Alert Info Alert Info Alert Info Alert '}
/>
<Alert
style={{ width: 300, marginTop: 12 }}
type={'error'}
text={'Error Alert Error Alert Error Alert Error Alert Error Alert Error Alert Error Alert '}
/>
<Alert
style={{ width: 300, marginTop: 12}}
type={'warning'}
text={'Warning Alert Warning Alert Warning Alert Warning Alert Warning Alert Warning Alert '}
/>

alert