Skip to content

Positioning toast #7

@nsantos16

Description

@nsantos16

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions