@workday/canvas-kit-react 10.3.21 → 10.3.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/common/lib/theming/useThemedRing.ts +1 -1
- package/dist/commonjs/common/lib/theming/useThemedRing.d.ts +1 -1
- package/dist/commonjs/common/lib/theming/useThemedRing.js +1 -1
- package/dist/es6/common/lib/theming/useThemedRing.d.ts +1 -1
- package/dist/es6/common/lib/theming/useThemedRing.js +1 -1
- package/package.json +4 -4
- package/action-bar/LICENSE +0 -51
- package/action-bar/README.md +0 -6
- package/avatar/LICENSE +0 -51
- package/avatar/README.md +0 -111
- package/badge/LICENSE +0 -51
- package/badge/README.md +0 -127
- package/banner/LICENSE +0 -51
- package/banner/README.md +0 -7
- package/breadcrumbs/LICENSE +0 -52
- package/breadcrumbs/README.md +0 -9
- package/button/LICENSE +0 -51
- package/button/README.md +0 -272
- package/card/LICENSE +0 -51
- package/card/README.md +0 -7
- package/checkbox/LICENSE +0 -51
- package/checkbox/README.md +0 -7
- package/collection/LICENSE +0 -52
- package/collection/README.md +0 -32
- package/color-picker/LICENSE +0 -51
- package/color-picker/README.md +0 -13
- package/combobox/LICENSE +0 -52
- package/combobox/README.md +0 -7
- package/common/LICENSE +0 -51
- package/common/README.md +0 -467
- package/dialog/LICENSE +0 -52
- package/dialog/README.md +0 -10
- package/form-field/LICENSE +0 -51
- package/form-field/README.md +0 -5
- package/icon/LICENSE +0 -51
- package/icon/README.md +0 -428
- package/layout/LICENSE +0 -52
- package/layout/README.md +0 -151
- package/loading-dots/LICENSE +0 -51
- package/loading-dots/README.md +0 -7
- package/menu/LICENSE +0 -52
- package/menu/README.md +0 -32
- package/modal/README.md +0 -12
- package/pagination/LICENSE +0 -51
- package/pagination/README.md +0 -7
- package/popup/LICENSE +0 -51
- package/popup/README.md +0 -12
- package/radio/LICENSE +0 -51
- package/radio/README.md +0 -7
- package/segmented-control/LICENSE +0 -51
- package/segmented-control/README.md +0 -56
- package/select/README.md +0 -12
- package/side-panel/README.md +0 -174
- package/skeleton/README.md +0 -7
- package/status-indicator/LICENSE +0 -51
- package/status-indicator/README.md +0 -7
- package/switch/README.md +0 -7
- package/table/README.md +0 -7
- package/tabs/LICENSE +0 -51
- package/tabs/README.md +0 -7
- package/testing/LICENSE +0 -52
- package/testing/README.md +0 -6
- package/text/LICENSE +0 -52
- package/text/README.md +0 -5
- package/text-area/LICENSE +0 -51
- package/text-area/README.md +0 -7
- package/text-input/LICENSE +0 -51
- package/text-input/README.md +0 -7
- package/toast/LICENSE +0 -52
- package/toast/README.md +0 -5
- package/tokens/LICENSE +0 -51
- package/tokens/README.md +0 -427
- package/tooltip/LICENSE +0 -51
- package/tooltip/README.md +0 -77
package/tooltip/README.md
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
# Canvas Kit Tooltip
|
|
2
|
-
|
|
3
|
-
A Tooltip component that renders information/text when the user hovers over an element. A tooltip is
|
|
4
|
-
used to label or describe an element. By default, a tooltip will label an element. This is useful
|
|
5
|
-
for TertiaryButtons that render just an icon. A tooltip can also be used to describe additional
|
|
6
|
-
information about an element
|
|
7
|
-
|
|
8
|
-
[> Workday Design Reference](https://design.workday.com/components/popups/tooltips)
|
|
9
|
-
|
|
10
|
-
## Installation
|
|
11
|
-
|
|
12
|
-
```sh
|
|
13
|
-
yarn add @workday/canvas-kit-react
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
## Usage
|
|
17
|
-
|
|
18
|
-
```tsx
|
|
19
|
-
import * as React from 'react';
|
|
20
|
-
|
|
21
|
-
import {Tooltip} from '@workday/canvas-kit-react/tooltip';
|
|
22
|
-
import {TertiaryButton} from '@workday/canvas-kit-react/button';
|
|
23
|
-
|
|
24
|
-
const TooltipExample = () => {
|
|
25
|
-
return (
|
|
26
|
-
<Tooltip title="Close">
|
|
27
|
-
<TertiaryButton icon={xIcon} aria-label="Close" />
|
|
28
|
-
</Tooltip>
|
|
29
|
-
);
|
|
30
|
-
};
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
## Static Properties
|
|
34
|
-
|
|
35
|
-
> None
|
|
36
|
-
|
|
37
|
-
## Component Props
|
|
38
|
-
|
|
39
|
-
### Required
|
|
40
|
-
|
|
41
|
-
#### title: string | React.ReactNode
|
|
42
|
-
|
|
43
|
-
> This should be a string in most cases. HTML is supported, but only text is understood by assistive
|
|
44
|
-
> technology. This is true for both `label` and `describe` modes.
|
|
45
|
-
|
|
46
|
-
#### children: React.ReactNode
|
|
47
|
-
|
|
48
|
-
> The target (anchor element) for the Tooltip.
|
|
49
|
-
>
|
|
50
|
-
> **Note:** This **must** be an Element, StyledComponent or any other component that forwards extra
|
|
51
|
-
> props to an Element. Tooltip works running `React.cloneElement` on the children and adds extra
|
|
52
|
-
> properties like aria attributes and event handlers. This is currently a limitation of the Tooltip
|
|
53
|
-
> component. Functionality will not work if this condition isn't met
|
|
54
|
-
|
|
55
|
-
---
|
|
56
|
-
|
|
57
|
-
### Optional
|
|
58
|
-
|
|
59
|
-
#### type: 'label' | 'describe'
|
|
60
|
-
|
|
61
|
-
> Determines the tooltip type for accessibility.
|
|
62
|
-
>
|
|
63
|
-
> - `label`: Sets the accessible name for the wrapped element. Use for icons or if tooltip `title`
|
|
64
|
-
> prop is the same as the text content of the wrapped element. E.g. TertiaryButtons that render an
|
|
65
|
-
> icon or Ellipsis tooltips.
|
|
66
|
-
> - `describe`: Sets `aria-describedby` of the wrapped element. Use if the tooltip has additional
|
|
67
|
-
> information about the target. **Note**: Assistive technology may ignore `describe` techniques
|
|
68
|
-
> based on verbosity settings. Consider an alternate way to inform a user of additional important
|
|
69
|
-
> information.
|
|
70
|
-
|
|
71
|
-
Default: `'label'`
|
|
72
|
-
|
|
73
|
-
#### placement: PopperJS.Placement
|
|
74
|
-
|
|
75
|
-
> Sets the placement preference used by PopperJS.
|
|
76
|
-
|
|
77
|
-
Default: `'top'`
|