ComponentsNew

Notification Toast

A phone-style notification card: slides in from above, grows a little on hover and closes with a cross.

Customize

tileFrom
tileTo
background

Based on ugly-stingray-77 by JohnnyCSilva (MIT license) · Terms of use

More in Pro

View all

Props

11 properties
PropertyTypeDefaultDescription
titlestring"Build finished"Bold first line.
timestring"2 min ago"Small note on the right, such as the time.
messagestring"Your preview is ready to open."Second line.
iconReactNode—Content of the square tile on the left, such as an app icon.
tileFromstring"#f5f5f5"Top color of the tile gradient.
tileTostring"#525252"Bottom color of the tile gradient.
backgroundstring"#262626"Card background.
dismissiblebooleantrueShow a close button.
onDismiss() => void—Called after the card is closed.
animateInbooleantrueSlide in from above on appear.
classNamestring—Classes for the wrapper.

Dependencies

2 required packages

npm install clsx tailwind-merge

Related components

View all