className | string | Partial<Record<"container" | "icon" | "snackbar" | "supportingText", string>> | ClassNameComponent<SnackbarInterface> | No | — | Root classes (string), static element classes (object), or state-aware element classes (function). |
message | string | Yes | — | Message announced through the snackbar. |
open | boolean | No | — | Controlled open state. |
defaultOpen | boolean | No | true | Initial open state when uncontrolled. Defaults to `true`. |
duration | number | No | — | Auto-dismiss delay in milliseconds. Omit to require an explicit close. |
closeIcon | Icon | No | iClose | Icon for the built-in close button. |
transition | Transition | No | — | Motion transition shared by every framework for the open/close height animation. |
onOpenChange | (open: boolean) => void | No | — | Notifies an accepted open-state request. |