Files
wdi-dashboard/node_modules/@chakra-ui/tooltip/README.md

30 lines
501 B
Markdown
Raw Normal View History

2024-08-16 15:06:52 +05:30
# Tooltip
Use this component to display extra information about an element by displaying a
floating description.
## Installation
```sh
yarn add @chakra-ui/tooltip
# or
npm i @chakra-ui/tooltip
```
## Import components
```js
import { Tooltip } from "@chakra-ui/react"
```
## Usage
If the `children` of Tooltip is a string, it will be wrapped with a focusable
`span` element to ensure the Tooltip meets accessibility requirements.
```jsx
<Tooltip label="Hey, I'm here!">Hover me</Tooltip>
```