#Notifications System does not have position prop

2 messages · Page 1 of 1 (latest)

velvet prism
#

The notification manager claims it has a position prop, but does not. In the types lib for notifications a type called NotificationsPositioning DOES exist, but it's not used anywhere (It also does not match the documentation on the site).

export interface NotificationProps extends Omit<NotificationComponentProps, 'onClose'> {
    id?: string;
    message: React.ReactNode;
    autoClose?: boolean | number;
    onClose?(props: NotificationProps): void;
    onOpen?(props: NotificationProps): void;
}
export interface NotificationsContextProps {
    notifications: NotificationProps[];
    queue: NotificationProps[];
}
export type NotificationsPositioning = ['top' | 'bottom', 'left' | 'right' | 'center'];

https://mantine.dev/others/notifications/?t=props

Mantine notifications system