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

Message: Override Icon using icon attribute #3196

Closed
nicholas-brooks opened this issue Aug 27, 2022 · 1 comment · Fixed by #3224
Closed

Message: Override Icon using icon attribute #3196

nicholas-brooks opened this issue Aug 27, 2022 · 1 comment · Fixed by #3224
Assignees
Labels
Type: New Feature Issue contains a new feature or new component request
Milestone

Comments

@nicholas-brooks
Copy link

Describe the feature you would like to see added

Similar to other components (e.g. Button), it would be great to be able to override the icon for a Message component using the icon attribute.

e.g.

<Message
    severity="warn"
    icon=`fa-solid fa-circle-radiation`
    text="Current radiation levels are too high!" />

Is your feature request related to a problem?

No response

Describe the solution you'd like

New icon attribute on <Message /> component.

e.g.

<Message
    severity="warn"
    icon=`fa-solid fa-circle-radiation`
    text="Current radiation levels are too high!" />

Describe alternatives you have considered

No response

Additional context

No response

@nicholas-brooks nicholas-brooks added Status: Discussion Issue or pull request needs to be discussed by Core Team Type: New Feature Issue contains a new feature or new component request labels Aug 27, 2022
@melloware
Copy link
Member

I like this idea.

habubey added a commit that referenced this issue Aug 31, 2022
habubey added a commit that referenced this issue Sep 1, 2022
melloware added a commit to melloware/primereact that referenced this issue Sep 1, 2022
@melloware melloware self-assigned this Sep 1, 2022
@melloware melloware added Core Team Issue or pull request has been *opened* by a member of Core Team and removed Status: Discussion Issue or pull request needs to be discussed by Core Team labels Sep 1, 2022
@melloware melloware added this to the 8.5.0 milestone Sep 1, 2022
@mertsincan mertsincan removed the Core Team Issue or pull request has been *opened* by a member of Core Team label Sep 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: New Feature Issue contains a new feature or new component request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants