An accessible popup anchored to a button.
Anatomy
Import the primitives and assemble the parts:
@using Blazix.Primitives
<PopoverRoot>
<PopoverTrigger />
<PopoverPortal>
<PopoverBackdrop />
<PopoverPositioner>
<PopoverPopup>
<PopoverArrow />
<PopoverViewport>
<PopoverTitle />
<PopoverDescription />
<PopoverClose />
</PopoverViewport>
</PopoverPopup>
</PopoverPositioner>
</PopoverPortal>
</PopoverRoot>API Reference
PopoverRoot
Doesn't render its own HTML element.
PopoverTrigger
Renders a <button> element.
Other attributes are passed to the element it renders.
PopoverPortal
Doesn't render its own HTML element.
PopoverBackdrop
Renders a <div> element.
Other attributes are passed to the element it renders.
PopoverPositioner
Doesn't render its own HTML element.
PopoverPopup
Renders a <div> element.
Other attributes are passed to the element it renders.
PopoverArrow
Renders a <div> element.
Other attributes are passed to the element it renders.
PopoverTitle
Renders a <h2> element.
Other attributes are passed to the element it renders.
PopoverDescription
Renders a <p> element.
Other attributes are passed to the element it renders.
PopoverClose
Renders a <button> element.
Other attributes are passed to the element it renders.
PopoverViewport
Renders a <div> element.
Other attributes are passed to the element it renders.