Skip to content

Commit

Permalink
📝 fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
lerte committed Dec 14, 2024
1 parent 52cf14f commit 95fc9d6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
22 changes: 11 additions & 11 deletions apps/docs/content/components/switch.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ description: Switches toggle the state of an item on or off

## Events

| Name | Type | Description |
| --------------- | ------------------------------- | ----------------------------------------------------------------- |
| `onChange` | (isSelected: boolean) => void | Handler that is called when the Switch's selection state changes. |
| `onFocus` | (e: FocusEvent<Target>) => void | Handler that is called when the element receives focus. |
| `onBlur` | (e: FocusEvent<Target>) => void | Handler that is called when the element loses focus. |
| `onFocusChange` | (isFocused: boolean) => void | Handler that is called when the element's focus status changes. |
| `onKeyDown` | (e: KeyboardEvent) => void | Handler that is called when a key is pressed. |
| `onKeyUp` | (e: KeyboardEvent) => void | Handler that is called when a key is released. |
| `onHoverStart` | (e: HoverEvent) => void | Handler that is called when a hover interaction starts. |
| `onHoverEnd` | (e: HoverEvent) => void | Handler that is called when a hover interaction ends. |
| `onHoverChange` | (isHovering: boolean) => void | Handler that is called when the hover state changes. |
| Name | Type | Description |
| --------------- | --------------------------------- | ----------------------------------------------------------------- |
| `onChange` | `(isSelected: boolean) => void` | Handler that is called when the Switch's selection state changes. |
| `onFocus` | `(e: FocusEvent<Target>) => void` | Handler that is called when the element receives focus. |
| `onBlur` | `(e: FocusEvent<Target>) => void` | Handler that is called when the element loses focus. |
| `onFocusChange` | `(isFocused: boolean) => void` | Handler that is called when the element's focus status changes. |
| `onKeyDown` | `(e: KeyboardEvent) => void` | Handler that is called when a key is pressed. |
| `onKeyUp` | `(e: KeyboardEvent) => void` | Handler that is called when a key is released. |
| `onHoverStart` | `(e: HoverEvent) => void` | Handler that is called when a hover interaction starts. |
| `onHoverEnd` | `(e: HoverEvent) => void` | Handler that is called when a hover interaction ends. |
| `onHoverChange` | `(isHovering: boolean) => void` | Handler that is called when the hover state changes. |
2 changes: 1 addition & 1 deletion apps/docs/content/components/tooltips.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ description: Tooltips display brief labels or messages
| isEntering | `boolean` || Whether the tooltip is currently performing an entry animation. |
| isExiting | `boolean` || Whether the tooltip is currently performing an exit animation. |
| 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. |
| placement | <tooltip>`Placement`</tooltip> | 'top' | The placement of the tooltip with respect to the trigger. |
| placement | `Placement` | 'top' | The placement of the tooltip with respect to the trigger. |
| containerPadding | `number` | 12 | The placement padding that should be applied between the element and its surrounding container. |
| offset | `number` | 0 | The additional offset applied along the main axis between the element and its anchor element. |
| crossOffset | `number` | 0 | The additional offset applied along the cross axis between the element and its anchor element. |
Expand Down

0 comments on commit 95fc9d6

Please sign in to comment.