|
| 1 | +<!-- This file was automatically generated. Do not edit it manually --> |
| 2 | + |
| 3 | +<llm-exclude> |
| 4 | +<PropsTable :data="[ |
| 5 | + { |
| 6 | + 'name': 'align', |
| 7 | + 'description': '<p>The preferred alignment against the trigger.\nMay change when collisions occur.</p>\n', |
| 8 | + 'type': '\'start\' | \'center\' | \'end\'', |
| 9 | + 'required': false |
| 10 | + }, |
| 11 | + { |
| 12 | + 'name': 'alignFlip', |
| 13 | + 'description': '<p>Flip alignment when colliding with boundary.\nMay only occur when <code>prioritizePosition</code> is true.</p>\n', |
| 14 | + 'type': 'boolean', |
| 15 | + 'required': false |
| 16 | + }, |
| 17 | + { |
| 18 | + 'name': 'alignOffset', |
| 19 | + 'description': '<p>An offset in pixels from the <code>start</code> or <code>end</code> alignment options.</p>\n', |
| 20 | + 'type': 'number', |
| 21 | + 'required': false |
| 22 | + }, |
| 23 | + { |
| 24 | + 'name': 'anchor', |
| 25 | + 'description': '<p>The element to position the toast against. Defaults to <code>toast.positionerProps.anchor</code>.</p>\n', |
| 26 | + 'type': 'ReferenceElement | null', |
| 27 | + 'required': false |
| 28 | + }, |
| 29 | + { |
| 30 | + 'name': 'arrowPadding', |
| 31 | + 'description': '<p>The padding between the arrow and the edges of the content.\nIf your content has border-radius, this will prevent it from\noverflowing the corners.</p>\n', |
| 32 | + 'type': 'number', |
| 33 | + 'required': false |
| 34 | + }, |
| 35 | + { |
| 36 | + 'name': 'as', |
| 37 | + 'description': '<p>The element or component this component should render as. Can be overwritten by <code>asChild</code>.</p>\n', |
| 38 | + 'type': 'AsTag | Component', |
| 39 | + 'required': false, |
| 40 | + 'default': '\'div\'' |
| 41 | + }, |
| 42 | + { |
| 43 | + 'name': 'asChild', |
| 44 | + 'description': '<p>Change the default rendered element for the one passed as a child, merging their props and behavior.</p>\n<p>Read our <a href=\'https://www.reka-ui.com/docs/guides/composition\'>Composition</a> guide for more details.</p>\n', |
| 45 | + 'type': 'boolean', |
| 46 | + 'required': false |
| 47 | + }, |
| 48 | + { |
| 49 | + 'name': 'avoidCollisions', |
| 50 | + 'description': '<p>When <code>true</code>, overrides the side and align preferences\nto prevent collisions with boundary edges.</p>\n', |
| 51 | + 'type': 'boolean', |
| 52 | + 'required': false |
| 53 | + }, |
| 54 | + { |
| 55 | + 'name': 'collisionBoundary', |
| 56 | + 'description': '<p>The element used as the collision boundary. By default\nthis is the viewport, though you can provide additional\nelement(s) to be included in this check.</p>\n', |
| 57 | + 'type': 'Element | (Element | null)[] | null', |
| 58 | + 'required': false |
| 59 | + }, |
| 60 | + { |
| 61 | + 'name': 'collisionPadding', |
| 62 | + 'description': '<p>The distance in pixels from the boundary edges where collision\ndetection should occur. Accepts a number (same for all sides),\nor a partial padding object, for example: { top: 20, left: 20 }.</p>\n', |
| 63 | + 'type': 'number | Partial<Record<\'top\' | \'right\' | \'bottom\' | \'left\', number>>', |
| 64 | + 'required': false |
| 65 | + }, |
| 66 | + { |
| 67 | + 'name': 'dir', |
| 68 | + 'description': '<p>The reading direction of the popper content when applicable. <br> If omitted, inherits globally from <code>ConfigProvider</code> or assumes LTR (left-to-right) reading mode.</p>\n', |
| 69 | + 'type': '\'ltr\' | \'rtl\'', |
| 70 | + 'required': false |
| 71 | + }, |
| 72 | + { |
| 73 | + 'name': 'disableUpdateOnLayoutShift', |
| 74 | + 'description': '<p>Whether to disable the update position for the content when the layout shifted.</p>\n', |
| 75 | + 'type': 'boolean', |
| 76 | + 'required': false |
| 77 | + }, |
| 78 | + { |
| 79 | + 'name': 'hideShiftedArrow', |
| 80 | + 'description': '<p>When <code>true</code>, hides the arrow when it cannot be centered\nto the reference element.</p>\n', |
| 81 | + 'type': 'boolean', |
| 82 | + 'required': false |
| 83 | + }, |
| 84 | + { |
| 85 | + 'name': 'hideWhenDetached', |
| 86 | + 'description': '<p>Whether to hide the content when the trigger becomes fully occluded.</p>\n', |
| 87 | + 'type': 'boolean', |
| 88 | + 'required': false |
| 89 | + }, |
| 90 | + { |
| 91 | + 'name': 'positionStrategy', |
| 92 | + 'description': '<p>The type of CSS position property to use.</p>\n', |
| 93 | + 'type': '\'fixed\' | \'absolute\'', |
| 94 | + 'required': false |
| 95 | + }, |
| 96 | + { |
| 97 | + 'name': 'prioritizePosition', |
| 98 | + 'description': '<p>Force content to be position within the viewport.</p>\n<p>Might overlap the reference element, which may not be desired.</p>\n', |
| 99 | + 'type': 'boolean', |
| 100 | + 'required': false |
| 101 | + }, |
| 102 | + { |
| 103 | + 'name': 'side', |
| 104 | + 'description': '<p>The preferred side of the trigger to render against when open.\nWill be reversed when collisions occur and avoidCollisions\nis enabled.</p>\n', |
| 105 | + 'type': '\'top\' | \'right\' | \'bottom\' | \'left\'', |
| 106 | + 'required': false |
| 107 | + }, |
| 108 | + { |
| 109 | + 'name': 'sideFlip', |
| 110 | + 'description': '<p>Flip to the opposite side when colliding with boundary.</p>\n', |
| 111 | + 'type': 'boolean', |
| 112 | + 'required': false |
| 113 | + }, |
| 114 | + { |
| 115 | + 'name': 'sideOffset', |
| 116 | + 'description': '<p>The distance in pixels from the trigger.</p>\n', |
| 117 | + 'type': 'number', |
| 118 | + 'required': false |
| 119 | + }, |
| 120 | + { |
| 121 | + 'name': 'sticky', |
| 122 | + 'description': '<p>The sticky behavior on the align axis. <code>partial</code> will keep the\ncontent in the boundary as long as the trigger is at least partially\nin the boundary whilst "always" will keep the content in the boundary\nregardless.</p>\n', |
| 123 | + 'type': '\'partial\' | \'always\'', |
| 124 | + 'required': false |
| 125 | + }, |
| 126 | + { |
| 127 | + 'name': 'toast', |
| 128 | + 'description': '<p>The toast to position. Its <code>positionerProps</code> are used for any prop that is not set.</p>\n', |
| 129 | + 'type': 'ToastObject<any>', |
| 130 | + 'required': true |
| 131 | + }, |
| 132 | + { |
| 133 | + 'name': 'updatePositionStrategy', |
| 134 | + 'description': '<p>Strategy to update the position of the floating element on every animation frame.</p>\n', |
| 135 | + 'type': '\'always\' | \'optimized\'', |
| 136 | + 'required': false |
| 137 | + } |
| 138 | +]" /> |
| 139 | +</llm-exclude> |
| 140 | + |
| 141 | +<llm-only> |
| 142 | + |
| 143 | +**Props** |
| 144 | + |
| 145 | +| Name | Description | Type | Required | Default | |
| 146 | +| --- | --- | --- | --- | --- | |
| 147 | +| `align` | The preferred alignment against the trigger. May change when collisions occur. | `"start" \| "center" \| "end"` | No | - | |
| 148 | +| `alignFlip` | Flip alignment when colliding with boundary. May only occur when prioritizePosition is true. | `boolean` | No | - | |
| 149 | +| `alignOffset` | An offset in pixels from the start or end alignment options. | `number` | No | - | |
| 150 | +| `anchor` | The element to position the toast against. Defaults to toast.positionerProps.anchor. | `ReferenceElement \| null` | No | - | |
| 151 | +| `arrowPadding` | The padding between the arrow and the edges of the content. If your content has border-radius, this will prevent it from overflowing the corners. | `number` | No | - | |
| 152 | +| `as` | The element or component this component should render as. Can be overwritten by asChild. | `AsTag \| Component` | No | `"div"` | |
| 153 | +| `asChild` | Change the default rendered element for the one passed as a child, merging their props and behavior. Read our Composition guide for more details. | `boolean` | No | - | |
| 154 | +| `avoidCollisions` | When true, overrides the side and align preferences to prevent collisions with boundary edges. | `boolean` | No | - | |
| 155 | +| `collisionBoundary` | The element used as the collision boundary. By default this is the viewport, though you can provide additional element(s) to be included in this check. | `Element \| (Element \| null)[] \| null` | No | - | |
| 156 | +| `collisionPadding` | The distance in pixels from the boundary edges where collision detection should occur. Accepts a number (same for all sides), or a partial padding object, for example: { top: 20, left: 20 }. | `number \| Partial<Record<"top" \| "right" \| "bottom" \| "left", number>>` | No | - | |
| 157 | +| `dir` | The reading direction of the popper content when applicable. <br> If omitted, inherits globally from ConfigProvider or assumes LTR (left-to-right) reading mode. | `"ltr" \| "rtl"` | No | - | |
| 158 | +| `disableUpdateOnLayoutShift` | Whether to disable the update position for the content when the layout shifted. | `boolean` | No | - | |
| 159 | +| `hideShiftedArrow` | When true, hides the arrow when it cannot be centered to the reference element. | `boolean` | No | - | |
| 160 | +| `hideWhenDetached` | Whether to hide the content when the trigger becomes fully occluded. | `boolean` | No | - | |
| 161 | +| `positionStrategy` | The type of CSS position property to use. | `"fixed" \| "absolute"` | No | - | |
| 162 | +| `prioritizePosition` | Force content to be position within the viewport. Might overlap the reference element, which may not be desired. | `boolean` | No | - | |
| 163 | +| `side` | The preferred side of the trigger to render against when open. Will be reversed when collisions occur and avoidCollisions is enabled. | `"top" \| "right" \| "bottom" \| "left"` | No | - | |
| 164 | +| `sideFlip` | Flip to the opposite side when colliding with boundary. | `boolean` | No | - | |
| 165 | +| `sideOffset` | The distance in pixels from the trigger. | `number` | No | - | |
| 166 | +| `sticky` | The sticky behavior on the align axis. partial will keep the content in the boundary as long as the trigger is at least partially in the boundary whilst "always" will keep the content in the boundary regardless. | `"partial" \| "always"` | No | - | |
| 167 | +| `toast` | The toast to position. Its positionerProps are used for any prop that is not set. | `ToastObject<any>` | Yes | - | |
| 168 | +| `updatePositionStrategy` | Strategy to update the position of the floating element on every animation frame. | `"always" \| "optimized"` | No | - | |
| 169 | + |
| 170 | +</llm-only> |
0 commit comments