Solidtype_heroui.PopoverHeroUI's Popover: Kobalte's Popover, with HeroUI's classes from Styles.Popover and its arrow.
<Popover>
<Button>"Click me"</Button>
<Popover.Content class_="max-w-64">
<Popover.Dialog>
<Popover.Heading>"Popover Title"</Popover.Heading>
<p>"This is the popover content."</p>
</Popover.Dialog>
</Popover.Content>
</Popover>A Button inside a popover is its trigger, as in HeroUI, and shows pressed while the popover is open; so is a Trigger, around anything else. A button inside the popover's content is a button. The popover opens as its trigger is pressed and gives the focus to its Dialog; Tab keeps the focus inside it, and the page outside is hidden from a reader while it is open, as React Aria's is. Escape, a press outside, or a reader's dismiss button closes it, and the focus goes back to its trigger.
It is drawn in a portal at the end of the page while it is open, and while HeroUI's exit animation plays after.
A part is used inside a Popover: elsewhere it raises Invalid_argument as it is made.
module Trigger : sig ... endA trigger of anything that is not a Button: Kobalte's trigger, a <div> with the role of a button, reached by Tab.
module Content : sig ... endThe popover: Kobalte's content, the dialog its Heading names, placement beside its trigger, bottom by default, offset pixels from it, 8 by default; on the other side where there is no room, unless should_flip is false.
module Dialog : sig ... endWhat the popover holds, padded: a <section>, which takes the focus as the popover opens.
module Heading : sig ... endThe popover's title, which names it: Kobalte's title, an <h2>.
module Arrow : sig ... endHeroUI's arrow, or the children it is given, on the side of the trigger and turned toward it, where Kobalte places an arrow.
module Props : sig ... endval make : Props.t -> Solidtype.Jsx.elementval component : Props.t Solidtype.Jsx.component