Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

Commit 91fb54f

Browse files
committed
Document fixed position
1 parent a35c697 commit 91fb54f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/components/custom-select.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,17 @@ works for both single and multi-select modes, and provides a clear button next t
135135
<x-custom-select :options="$options" optional />
136136
```
137137

138+
## Fixed Positioning
139+
140+
By default, the custom select menu is positioned absolutely. In most cases, this should be fine, but there
141+
may be times where this breaks the layout of your form. In those cases, you may tell the menu to be
142+
fixed positioned. This will tell the menu to calculate where the menu should be positioned when
143+
it is opened.
144+
145+
```html
146+
<x-custom-select :options="$options" fixed-position />
147+
```
148+
138149
## Addons
139150

140151
The custom select component supports leading addons, but since there are already elements appended to the end

0 commit comments

Comments
 (0)