Skip to content

Commit 95fc9d6

Browse files
committed
📝 fix warning
1 parent 52cf14f commit 95fc9d6

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

apps/docs/content/components/switch.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ description: Switches toggle the state of an item on or off
2525

2626
## Events
2727

28-
| Name | Type | Description |
29-
| --------------- | ------------------------------- | ----------------------------------------------------------------- |
30-
| `onChange` | (isSelected: boolean) => void | Handler that is called when the Switch's selection state changes. |
31-
| `onFocus` | (e: FocusEvent<Target>) => void | Handler that is called when the element receives focus. |
32-
| `onBlur` | (e: FocusEvent<Target>) => void | Handler that is called when the element loses focus. |
33-
| `onFocusChange` | (isFocused: boolean) => void | Handler that is called when the element's focus status changes. |
34-
| `onKeyDown` | (e: KeyboardEvent) => void | Handler that is called when a key is pressed. |
35-
| `onKeyUp` | (e: KeyboardEvent) => void | Handler that is called when a key is released. |
36-
| `onHoverStart` | (e: HoverEvent) => void | Handler that is called when a hover interaction starts. |
37-
| `onHoverEnd` | (e: HoverEvent) => void | Handler that is called when a hover interaction ends. |
38-
| `onHoverChange` | (isHovering: boolean) => void | Handler that is called when the hover state changes. |
28+
| Name | Type | Description |
29+
| --------------- | --------------------------------- | ----------------------------------------------------------------- |
30+
| `onChange` | `(isSelected: boolean) => void` | Handler that is called when the Switch's selection state changes. |
31+
| `onFocus` | `(e: FocusEvent<Target>) => void` | Handler that is called when the element receives focus. |
32+
| `onBlur` | `(e: FocusEvent<Target>) => void` | Handler that is called when the element loses focus. |
33+
| `onFocusChange` | `(isFocused: boolean) => void` | Handler that is called when the element's focus status changes. |
34+
| `onKeyDown` | `(e: KeyboardEvent) => void` | Handler that is called when a key is pressed. |
35+
| `onKeyUp` | `(e: KeyboardEvent) => void` | Handler that is called when a key is released. |
36+
| `onHoverStart` | `(e: HoverEvent) => void` | Handler that is called when a hover interaction starts. |
37+
| `onHoverEnd` | `(e: HoverEvent) => void` | Handler that is called when a hover interaction ends. |
38+
| `onHoverChange` | `(isHovering: boolean) => void` | Handler that is called when the hover state changes. |

apps/docs/content/components/tooltips.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ description: Tooltips display brief labels or messages
2929
| isEntering | `boolean` || Whether the tooltip is currently performing an entry animation. |
3030
| isExiting | `boolean` || Whether the tooltip is currently performing an exit animation. |
3131
| UNSTABLE_portalContainer | `Element` | document.body | The container element in which the overlay portal will be placed. This may have unknown behavior depending on where it is portalled to. |
32-
| placement | <tooltip>`Placement`</tooltip> | 'top' | The placement of the tooltip with respect to the trigger. |
32+
| placement | `Placement` | 'top' | The placement of the tooltip with respect to the trigger. |
3333
| containerPadding | `number` | 12 | The placement padding that should be applied between the element and its surrounding container. |
3434
| offset | `number` | 0 | The additional offset applied along the main axis between the element and its anchor element. |
3535
| crossOffset | `number` | 0 | The additional offset applied along the cross axis between the element and its anchor element. |

0 commit comments

Comments
 (0)