Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to set anchorOrigin in useNotify #8541

Merged
merged 1 commit into from
Jan 3, 2023
Merged

Conversation

fzaninotto
Copy link
Member

@fzaninotto fzaninotto commented Jan 3, 2023

const AnchorOriginNotification = () => {
    const notify = useNotify();
    React.useEffect(() => {
        notify('hello, world', {
            anchorOrigin: { vertical: 'top', horizontal: 'right' },
        });
    }, [notify]);
    return null;
};

Capture d’écran 2023-01-03 à 13 47 50

See https://mui.com/material-ui/react-snackbar/#positioned-snackbars for details

@djhi djhi added this to the 4.7.0 milestone Jan 3, 2023
@djhi djhi merged commit 8b507d6 into next Jan 3, 2023
@djhi djhi deleted the usenotify-anchor-origin branch January 3, 2023 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFR Ready For Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants