{"repo":"react-component/trigger","free":true,"listed":false,"github":"https://github.com/react-component/trigger","clone":"git clone https://github.com/react-component/trigger.git","description":"🎯 Popup trigger and alignment primitive for React.","language":"TypeScript","stars":391,"topics":["ant-design","antd","javascript","react","react-component"],"license":"MIT","category":"ui-components","readme_excerpt":"@rc-component/trigger Part of the Ant Design ecosystem. 🎯 Popup trigger and alignment primitive for React. English 简体中文 Highlights - Built for React and maintained by the rc-component team. - Used by Ant Design and other React component libraries. - Ships TypeScript declarations with both ES module and CommonJS outputs. - Keeps examples, tests, and preview builds aligned with the package source. Install Usage Examples Run the local dumi site: Then open http://localhost:8000 . API Trigger Prop Description Type Default -------------------------- ------------------------------------------------------------------------- ----------------------------------------- ------------------ action Actions that control popup visibility. ActionType \\ ActionType[] hover afterOpenChange Called after popup visibility changes. (visible) = void - afterPopupVisibleChange Deprecated. Use afterOpenChange instead. (visible) = void - alignPoint Align popup to mouse position for click, hover, and context menu actions. boolean false arrow Render popup arrow. boolean \\ ArrowType - autoDestroy Destroy popup DOM when it is hidden. boolean false blurDelay Delay before hiding on blur, in seconds. number - builtinPlacements Named placement presets. BuildInPlacements {} defaultPopupVisible Initial uncontrolled visibility. boolean false disabled Temporarily suppress popup visibility without resetting the current open state. boolean false focusDelay Delay before showing on focus, in seconds. number - forceRender","default_branch":null,"files":null,"tree":[],"storefront":"/r/react-component","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/react-component/trigger/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}