Skip to content

Docs: three prop-table errors (offset default, hotkey type, containerAriaLabel placement) #781

Description

@realkss

Three rows on sonner.emilkowal.ski disagree with the published package (checked against sonner@2.0.8 dist/index.d.ts / index.mjs; all three reproduce today):

  1. /toaster — offset default shown as 32px. v2 ships VIEWPORT_OFFSET = '24px'. 32px was the v1 default.
  2. /toaster — hotkey typed string. It's string[] (the code calls hotkey.join('+') / hotkey.every(...); a string throws TypeError and unmounts the Toaster). Default ['altKey', 'KeyT'].
  3. /toast — containerAriaLabel listed as a toast() option. It's declared only on ToasterProps; passed per-toast it's silently ignored, and it's absent from the /toaster table — so it's documented only where it doesn't work.

(A sibling PR fixes the same values where they were transcribed into emilkowalski/skills.)

🤖 Generated with Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions