Optionalchildren children ?: ReactNode
Optionalclass Name className ?: string
Optionalclose Button closeButton ?: boolean
Optionalcontainer Aria Label containerAriaLabel ?: string
Optionaldir dir ?: "auto" | "ltr" | "rtl"
Optionalduration duration ?: number
Optionalexpand expand ?: boolean
Optionalhotkey hotkey ?: string []
Optionalicons icons ?: ToastIcons
Optionalinvert invert ?: boolean
Optionalkey key ?: null | Key
Optionalmobile Offset mobileOffset ?: Offset
Optionaloffset offset ?: Offset
Optionalposition position ?: Position
Optionalref ref ?: LegacyRef < HTMLElement >
Optionalrich Colors richColors ?: boolean
Optionalstyle style ?: CSSProperties
Optionalswipe Directions swipeDirections ?: SwipeDirection []
Optionaltheme theme ?: "dark" | "light" | "system"
Optionaltoast Options toastOptions ?: ToastOptions
Optionalvisible Toasts visibleToasts ?: number
Allows getting a ref to the component instance. Once the component unmounts, React will set
ref.currenttonull(or call the ref withnullif you passed a callback ref).