Notice
A succinct message that is displayed temporarily.
Success
PreviewCode
Caution
PreviewCode
Fail
PreviewCode
Material Design
PreviewCode
Props
Universal Props
Prop | Type | Accepted Values | Description | Default | Version |
---|---|---|---|---|---|
message | ReactNode | - | Notification content | - | - |
variant | string | default | md | The Material Design style can be enabled, and the notification pop-up window is located in the lower left corner. | default | md >= 0.4.7 |
method | function | success() | fail() | caution() | Notification type method. Determines icon/color and is triggered via useNotice(). | - | - |