Skip to content

Commit

Permalink
docs: update tooltip docs
Browse files Browse the repository at this point in the history
  • Loading branch information
segunadebayo committed Aug 4, 2023
1 parent 8d857f8 commit cd33185
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 141 deletions.
11 changes: 0 additions & 11 deletions website/data/components/tooltip.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -214,17 +214,6 @@ const [state, send] = useMachine(
)
```

## Using custom labels

By default, the only content announced to them is whatever is in the tooltip. On
some cases you may want the screen readers to know more information about the
trigger (e.g. a notifications system with count).

For this use-case, pass the `aria-label` context property and use the
`labelProps` exposed in the tooltip's connect function.

<CodeSnippet id="tooltip/custom-label.mdx" />

## Events

When the tooltip open or closes, the `onOpen` and `onClose` callbacks are fired.
Expand Down
31 changes: 0 additions & 31 deletions website/data/snippets/react/tooltip/custom-label.mdx

This file was deleted.

32 changes: 0 additions & 32 deletions website/data/snippets/solid/tooltip/custom-label.mdx

This file was deleted.

42 changes: 0 additions & 42 deletions website/data/snippets/vue-jsx/tooltip/custom-label.mdx

This file was deleted.

25 changes: 0 additions & 25 deletions website/data/snippets/vue-sfc/tooltip/custom-label.mdx

This file was deleted.

4 comments on commit cd33185

@vercel
Copy link

@vercel vercel bot commented on cd33185 Aug 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on cd33185 Aug 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

zag-vue – ./examples/vue-ts

zag-vue-chakra-ui.vercel.app
zag-vue-git-main-chakra-ui.vercel.app
zag-vue.vercel.app

@vercel
Copy link

@vercel vercel bot commented on cd33185 Aug 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

zag-nextjs – ./examples/next-ts

zag-nextjs-chakra-ui.vercel.app
zag-two.vercel.app
zag-nextjs-git-main-chakra-ui.vercel.app

@vercel
Copy link

@vercel vercel bot commented on cd33185 Aug 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

zag-solid – ./examples/solid-ts

zag-solid-chakra-ui.vercel.app
zag-solid-git-main-chakra-ui.vercel.app
zag-solid.vercel.app

Please sign in to comment.