Skip to content

Positioning toast #7

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

Open
nsantos16 opened this issue Aug 11, 2020 · 0 comments
Open

Positioning toast #7

nsantos16 opened this issue Aug 11, 2020 · 0 comments
Labels
enhancement New feature or request hacktoberfest on hold Toast behavior Related with the implementation of toast behavior V0.1 release Will be included in V0.1 release

Comments

@nsantos16
Copy link
Contributor

Description

We need to implement a position property on useToast hook, I think something like this

const { onOpen, onClose } = useToast(<CustomToast />, { position: 'bottom', positionOffset: 30 })

in which:

  • position accepts (for now) bottom and top(default value) properties, which positioning the toast on center-bottom/center-top of the screen
  • positionOffset accepts offset of the screen position, with a default value of 20
@nsantos16 nsantos16 added enhancement New feature or request V0.1 release Will be included in V0.1 release on hold Toast behavior Related with the implementation of toast behavior labels Aug 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hacktoberfest on hold Toast behavior Related with the implementation of toast behavior V0.1 release Will be included in V0.1 release
Projects
None yet
Development

No branches or pull requests

1 participant