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

Allow customization of message container #13

Closed
timolins opened this issue Dec 24, 2020 · 4 comments · May be fixed by vAHiD55555/proxy-provider-converter#4
Closed

Allow customization of message container #13

timolins opened this issue Dec 24, 2020 · 4 comments · May be fixed by vAHiD55555/proxy-provider-converter#4
Labels
enhancement New feature or request

Comments

@timolins
Copy link
Owner

This issue was original raised by @ambroseus in #5. It would be cool to replace the built-in Message container. It includes styles which are hard to get rid of at the moment.

Ideally you will be a able to provide a custom Component without having to go headless.

@timolins timolins added the enhancement New feature or request label Dec 24, 2020
@OlaoluwaM
Copy link

Hello

This project looks really cool! Could take a go at this issue?

@jlalmes
Copy link
Contributor

jlalmes commented Apr 3, 2021

Really keen on the ability to style that <Message> component. Would be great if we could just add a messageStyle key to the current toast options e.g.

toast(<MyComponent />, {
  id: 'component-id',
  duration: 5000,
  style: { 
    padding: 0,
  },
  messageStyle: {
    margin: 0,
  }
});

What do you think - would you like me to open a PR for this?

@lsbyerley
Copy link

This is a very needed customization as the the current styling for the toast container isn't customizable. I agree the messageStyle or maybe even toastContainerStyle property would be a solid solution to add

@lsbyerley
Copy link

I do see this containerStyle property in the Toaster component but I don't think it does anything?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
4 participants