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

[docs] I Believe some of the Icon imports might need updating. For egs. #45038

Closed
samudra-perera opened this issue Jan 16, 2025 · 2 comments
Closed
Assignees
Labels
component: Icon The React component. docs Improvements or additions to the documentation support: docs-feedback Feedback from documentation page

Comments

@samudra-perera
Copy link

samudra-perera commented Jan 16, 2025

Related page

https://mui.com/material-ui/material-icons/?srsltid=AfmBOooxIzqPbOgJX9P5sKugtwmAtVJpSyWnDD7e3aq5pfnmUoo0LmJI

Kind of issue

Missing information

Issue description

The correct import for the outlined icon is
import InfoOutlined from '@mui/icons-material/InfoOutlined';

but in the docs it is
import InfoOutlinedIcon from '@mui/icons-material/InfoOutlined';

Context

No response

Search keywords: icons, docs

@samudra-perera samudra-perera added status: waiting for maintainer These issues haven't been looked at yet by a maintainer support: docs-feedback Feedback from documentation page labels Jan 16, 2025
@zannager zannager added docs Improvements or additions to the documentation component: Icon The React component. labels Jan 17, 2025
@DiegoAndai
Copy link
Member

DiegoAndai commented Jan 17, 2025

Hey @samudra-perera, thanks for reaching out.

In the docs, we suffix the icon's import name with Icon as a convention. We do this for all icons, not only InfoOutlined. It's only a convention; there's no correct or incorrect name as this is a default import. You can use InfoOutlined or InfoOutlinedIcon or whatever, you decide the name.

Let me know if you have any question about it.

@DiegoAndai DiegoAndai removed the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Jan 17, 2025
@DiegoAndai DiegoAndai assigned DiegoAndai and unassigned siriwatknp Jan 17, 2025
Copy link

This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue.
Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.

Note

@samudra-perera How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: Icon The React component. docs Improvements or additions to the documentation support: docs-feedback Feedback from documentation page
Projects
None yet
Development

No branches or pull requests

4 participants