Quick start guide and documentation
Success! Your changes have been saved.
| Class | Position |
|---|---|
.rsl-top-left | Top-left corner |
.rsl-top-center | Top-center |
.rsl-top-right | Top-right corner (most common) |
.rsl-bottom-left | Bottom-left corner |
.rsl-bottom-center | Bottom-center |
.rsl-bottom-right | Bottom-right corner |
| Class | Behavior |
|---|---|
.rsl-fixed | Fixed to viewport (stays on screen during scroll) |
.rsl-absolute | Absolute positioning within parent container |
| Attribute | Purpose |
|---|---|
data-timeout="3000" | Auto-dismiss after 3000ms (3 seconds) |
data-toast-trigger="id" | Button attribute to show specific toast |
| Class | Use Case |
|---|---|
.rsl-bg-success | Green - successful actions |
.rsl-bg-danger | Red - errors or warnings |
.rsl-bg-warning | Yellow - caution messages |
.rsl-bg-info | Blue - informational messages |
.rsl-top-right for most notifications—it's visible but doesn't block contentdata-timeout based on message length—longer messages need more time.rsl-fixed for global notifications, .rsl-absolute for section-specific messagesaria-label for accessibilityRSL Toasts include accessibility features:
aria-label for screen readers