Solidtype_heroui.PanelWhat a disclosure's content and an accordion's panel share: content kept on the page while collapsed, hidden until the browser's find in page reaches a word in it, and sized as HeroUI's styles animate it, by --disclosure-panel-width and --disclosure-panel-height, as React Aria sizes its disclosure's panel.
It grows from no size to its own, measured once it is shown, and takes its own as it changes once its transition ends; it shrinks from its size to none, its size read first so the transition starts from it, and is hidden once the transition ends. A toggle before a transition ends leaves its end to the toggle after. Where the browser cannot tell a transition, it takes its size at once.
val create : expanded:(unit -> bool) -> expand:(unit -> unit) -> unit -> tcreate ~expanded ~expand () is content shown while expanded (), read as it changes, which calls expand as find in page reaches it. It is made while a component is, which it runs an effect beside.
val watch : t -> _ Dom.element_like -> unitwatch p element sizes element, shows and hides it, and listens for find in page on it: the content's ref.
Its hidden attribute as it is first rendered, "until-found" while collapsed, which a prerendered page holds; watch changes it after.