We are currently in alpha version.
Please expect changes. If you find any issues, please report them on our github.
Toast Notifications
Toasts are non-intrusive message notifications that temporarily appear on the screen to provide quick feedback to users. They are commonly used to:
Toast
Preview
Code
Optional properties
Property | Type | Description |
---|---|---|
| string | The title of the toast. |
| string | The text of the toast. |
| string | The text of the action button. |
|
| The shape of the toast. |
|
| The type of the toast. |
| string | Allows overriding default styles by passing Tailwind CSS classes. Utilize the |
Output events
Events | Description |
---|---|
| Emitted when the toast is dismissed. I.e. when the user clicks on the dismiss icon or swipes right on the toast. |
| Emitted when the user clicks on the action button. |
Text only toast
Preview
Code
With title
Preview
Code
With action button
Preview
Code
Error toast
Preview
Code
Toast componnet only
Preview
Code
Toast title here
Toast sub title here
Toast component only custom content
Preview
Code
Custom content
Lorem ipsum dolor sit amet consectetur adipisicing elit. View details
Global configurations
Shape and Size
Property | Description |
---|---|
| Defines the shape of the toast. Can be |
Colors
You can provide each of these colors for different themes that you use
Property | Description |
---|---|
| Background color of the toast. |
| Text color of the toast content. |
| Border color of the toast. |
| Color of the toast title text. |
| Background color of the action button. |
| Text color of the action button. |
| Border color of the action button. |
| Background color of the action button on hover. |
| Text color of the action button on hover. |
| Border color of the action button on hover. |
Other styles
You can provide a bunch of other styles, that are not theme based but rather generic
Property | Description |
---|---|
| Defines the radius of the toast's corners. |
| Sets the padding for all sides of the toast content. |
| Sets the left padding of the toast content. |
| Sets the right padding of the toast content. |
| Sets the top padding of the toast content. |
| Sets the bottom padding of the toast content. |
| Sets the padding for all sides of the action button. |
| Sets the left padding of the action button. |
| Sets the right padding of the action button. |
| Sets the top padding of the action button. |
| Sets the bottom padding of the action button. |
| Sets the font size of the toast text content. |
| Sets the font size of the toast title. |
| Sets the font weight of the toast text content. |
| Sets the font weight of the toast title. |
| Sets the line height of the toast text content. |
| Sets the line height of the toast title. |
| Sets the letter spacing of the toast text content. |
| Sets the letter spacing of the toast title. |
| Sets the font size of the action button. |
| Sets the font weight of the action button. |
| Sets the line height of the action button. |
| Sets the letter spacing of the action button. |