IActivatorProps
interface
State & Interaction
Contract for components that open/close a floating surface via an activator element — includes pointer, hover, focus and context-menu triggers plus open/close delays.
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.
- target'parent' | 'cursor' | TAnyString | Element | ComponentPublicInstance | [x: number, y: number] | undefined
- Override the anchor target for positioning the floating surface.
- activator'parent' | 'cursor' | TAnyString | Element | ComponentPublicInstance
- Element (or CSS selector) that acts as the activator for the floating surface.
- activatorPropsany
- Extra props spread onto the activator element (e.g. aria attributes).
- openOnClickboolean
- Open the surface when the activator is clicked.
- openOnContextMenuboolean
- Open the surface on right-click / context-menu.
- openOnHoverboolean
- Open the surface when the pointer enters the activator.
- openOnFocusboolean
- Open the surface when the activator gains keyboard focus.
- closeOnContentClickboolean
- Automatically close the surface when the user clicks anywhere inside its content.
É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 on a floating component