The Notification component can be used to display smaller pieces of text informing the user or signalling success/failure.
import Notification from "@ds-kit/notification"
A simple example of Notification would look like this:
Example success notification text<Notification variant="success">Example success notification text</Notification>
Use the variant
prop to select one of four available variants (success
, info
, alert
, danger
).
Example success notification textExample info notification textExample alert notification textExample danger notification text<> <Notification variant="success"> Example success notification text </Notification> <Notification variant="info">Example info notification text</Notification> <Notification variant="alert">Example alert notification text</Notification> <Notification variant="danger">Example danger notification text</Notification> </>
variant
string
"info"
show
bool
true
onClose
func
children
node
arrayOf