mui / mui/material-ui

Export useSnackbar from Snackbar component

Open Beginner friendly
#48,254 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

type: new feature waiting for 👍
Dominant language
JavaScript
Stars
99.1k
Forks
32.5k
Avg merge
2d 17h
Merged PRs (30d)
106

Description

Summary

Prior to v9, we were using useSnackbar from the deprecated @mui/base package (the last v7 beta that got published) to make a hybrid Popover/Snackbar component. useSnackbar is there in the codebase but isn't exported in a way that it can be used, would it be possible to include it in the exports in the Snackbar component?

Examples

No response

Motivation

No response

Search keywords: useSnackbar

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the existing useSnackbar implementation and the Snackbar component's public export entry point. Check how related Snackbar APIs are exported and verify that consumers can import useSnackbar from the intended Snackbar component path. Done means the hook is publicly importable without using the deprecated @mui/base package.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.