ILocationStrategyProps
Full positioning contract for floating elements — extends IDimensionProps with strategy selection, anchor/origin pair, pixel offset and viewport margin. Consumed by Menu, Select, Tooltip and any component using the connected or static location strategies.
TypeScript
Définition
La définition TypeScript de l'interface telle que trouvée dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.
Héritage
Hérite de
Interfaces parentes dont celle-ci hérite. Leurs propriétés sont disponibles pour tout consommateur de cette interface.
API
Propriétés
Chaque propriété déclarée par cette interface, avec son type, son caractère optionnel et sa valeur par défaut.
- locationStrategyTLocationStrategy | TLocationStrategyFn
- Named strategy ("connected" | "static") or a custom strategy function. The connected strategy aligns the floating panel to the activator; static keeps it in place.
- locationTAnchor
- Side and alignment where the floating content appears relative to the activator (e.g. "bottom start", "top end").
- originTAnchor | 'auto' | 'overlap'
- The anchor point on the floating content itself. "auto" mirrors the location; "overlap" places the panel over the activator.
- offsetnumber | string | Array<number>
- Gap in pixels between the activator and the floating content. An array of two values sets [main-axis, cross-axis] offsets independently.
- viewportMarginnumber12
- Minimum breathing room in pixels between the floating content and each viewport edge. Defaults to 12 so panels never overlap browser chrome.
Écosystème
Utilisé par
Composants et composables qui étendent ou consomment cette interface.
Usage
Exemples
Extraits de code prêts à coller utilisant cette interface.
Extending the interface for a dropdown component