<IonPopover
showBackdrop={false}
cssClass="theme-popover"
event={popoverState.event}
isOpen={popoverState.showPopover}
onDidDismiss={() =>
setShowPopover({
showPopover: false,
event: undefined,
})
}
>
<IonContent class="ion-padding">
Hello World!
</IonContent>
</IonPopover>
如何在IonButton上应用悬停效果,以便在Ionic-React中打开IonPopover作为工具提示?
1条答案
按热度按时间x0fgdtte1#
you can use
triggerAction="hover"
to show popover on hover:See Documentation: ion-popover