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

[paragon-openedx.netlify.app] Feedback (on /components/toast/) Props API extensions for the Toast component #3410

Open
PKulkoRaccoonGang opened this issue Feb 3, 2025 · 0 comments

Comments

@PKulkoRaccoonGang
Copy link
Contributor

PKulkoRaccoonGang commented Feb 3, 2025

In the current implementation of the Toast component, we provide consumers with the following API props: children, onClose, show, action, closeLabel, delay and className.

The Toast component is always displayed at the bottom left and always has a $gray-700 color.

Image

I think it would be convenient for consumers to select a toast variant and position, similar to the Annotation component. For example, using the API prop, consumers could select an variant (e.g. error) and display the Toast in the lower right corner.

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant