Interface DisclosureArguments

interface DisclosureArguments {
    defaultVisible?: MaybeAccessor<undefined | boolean>;
    id?: string;
    isButtonElement?: boolean;
    isVisible?: MaybeAccessor<undefined | boolean>;
    onVisibilityChange?: ((isOpen) => void);
}

Hierarchy

Properties

defaultVisible?: MaybeAccessor<undefined | boolean>

Whether the Disclosure is open by default (uncontrolled).

Default

false
id?: string

Custom unique identifier of the disclosure content element.

isButtonElement?: boolean

Whether the disclosure toggle is a button element, default to true. Set this to false if you want to use a different element than a button.

Default

true
isVisible?: MaybeAccessor<undefined | boolean>

Whether the Disclosure is open by default (controlled).

onVisibilityChange?: ((isOpen) => void)

Handler that is called when the Disclosure visibility state changes.

Type declaration

    • (isOpen): void
    • Parameters

      • isOpen: boolean

      Returns void

Generated using TypeDoc