Solidtype_heroui.Disclosure_groupHeroUI's DisclosureGroup: the Disclosures inside it, each by its id, expanded as the group keeps them, with HeroUI's classes from Styles.DisclosureGroup. A <div>.
<Disclosure_group default_expanded_keys=[| "shipping" |]>
<Disclosure id="shipping">...</Disclosure>
<Disclosure id="returns">...</Disclosure>
</Disclosure_group>expanded_keys are the expanded disclosures' ids while it is given, else those kept, default_expanded_keys at first; a change calls on_expanded_change with them all. One is expanded at a time, expanding another collapsing it, unless allows_multiple_expanded. is_disabled disables every disclosure inside it. A disclosure in a group is expanded as the group holds its id, one made for it where it has none, and its own is_expanded and default_expanded are not read there; its on_expanded_change is still called.
type group = {is_expanded : string -> bool;Whether the disclosure of a key is expanded, read where it is shown.
*)toggle : string -> unit;Expands or collapses the disclosure of a key.
*)is_disabled : unit -> bool;}What a group gives its disclosures.
module Context : sig ... endPrevious and next buttons over a group's disclosures.
HeroUI's useDisclosureGroupNavigation: the disclosures of item_ids, in their order, stepped through by the expanded keys, which it reads while they change and sets by on_expanded_change. Where several may be expanded, allows_multiple_expanded, next expands the one after the last expanded and previous the one before the first, so each press reaches another.
module Props : sig ... endval make : Props.t -> Solidtype.Jsx.elementval component : Props.t Solidtype.Jsx.component