Module floating_ui_core::middleware
source · Expand description
Middleware implementations for compute_position
.
Structs§
- State passed to
SizeOptions::apply
. - Provides data to position an inner element of the floating element so that it appears centered to the reference element.
- Data stored by
Arrow
middleware. - Options for
Arrow
. - Optimizes the visibility of the floating element by choosing the placement that has the most space available automatically, without needing to specify a preferred placement. Alternative to
Flip
. - Data stored by
AutoPlacement
middleware. - An overflow stored in
AutoPlacementData
. - Options for
AutoPlacement
middleware. - Default
Limiter
, which doesn’t limit shifting. - Optimizes the visibility of the floating element by flipping the
placement
in order to keep it in view when the preferred placement(s) will overflow the clipping boundary. Alternative toAutoPlacement
. - Data stored by
Flip
middleware. - An overflow stored in
FlipData
. - Options for
Flip
middleware. - Provides data to hide the floating element in applicable situations, such as when it is not in the same clipping context as the reference element.
- Data stored by
Hide
middleware. - Options for
Hide
middleware. - Provides improved positioning for inline reference elements that can span over multiple lines, such as hyperlinks or range selections.
- Options for
Inline
. - Axes configuration for
LimitShiftOffset
. - Options for
LimitShift
limiter. - Modifies the placement by translating the floating element along the specified axes.
- Data stored by
Offset
middleware. - Axes configuration for
OffsetOptions
. - Optimizes the visibility of the floating element by shifting it in order to keep it in view when it will overflow the clipping boundary.
- Data stored by
Shift
middleware. - Options for
Shift
middleware. - Provides data that allows you to change the size of the floating element - for instance, prevent it from overflowing the clipping boundary or match the width of the reference element.
- Options for
Size
middleware.
Enums§
- Fallback strategy used by
Flip
middleware. - Fallback strategy used by
Hide
middleware. - Offset configuration for
LimitShiftOptions
. - Options for
Offset
middleware.
Constants§
- Name of the
Arrow
middleware. - Name of the
AutoPlacement
middleware. - Name of the
Flip
middleware. - Name of the
Hide
middleware. - Name of the
Inline
middleware. - Name of the
Offset
middleware. - Name of the
Shift
middleware. - Name of the
Size
middleware.
Traits§
- Limiter used by
Shift
middleware. Limits the shifting done in order to prevent detachment.