Custom UI
Nuxt Notify lets you override the default toast styles using Tailwind utility classes via the ui option.
UI Override Object
Pass Tailwind classes in ui:
Example
Available UI Keys
| Key | Description |
|---|---|
root | Toast container |
title | Title text |
description | Description text |
icon | Icon wrapper |
actions | Actions container |
action | Individual action button |
progress | Progress bar |
avatar | Avatar container |
Custom Border
Border
Large Typography
Typography
Custom Shadow
Shadow
Gradient Background
Gradient
Custom Action Buttons
Actions
Minimal Design
Minimal
Best Practices
Prefer Tailwind utilities
Good vs Bad
Keep contrast readable
Contrast
Make it responsive (optional)
Responsive
You can override global defaults in notify.ui (config) and override per toast via toast.add({ ui: ... }).
