import type { JSX } from 'solid-js'; import type { DisclosureStateRenderProps } from '../../states/create-disclosure-state'; import type { HeadlessPropsWithRef, ValidConstructor } from '../../utils/dynamic-prop'; import type { OmitAndMerge } from '../../utils/types'; import type { ButtonProps } from '../button'; export type DisclosureButtonProps = HeadlessPropsWithRef>>; /** * The control that toggles a `Disclosure`. Carries `aria-expanded`, and `aria- * controls` while the panel is mounted. * * Renders a `