phoenix_live_view
    Preparing search index...

    Type Alias ToggleOpts

    type ToggleOpts = {
        blocking?: boolean;
        display?: string;
        in?: Transition;
        out?: Transition;
        time?: number;
    }
    Index

    Properties

    blocking?: boolean

    Whether to block UI during transition. Defaults true.

    display?: string

    The CSS display value to set. Defaults to "block".

    The CSS transition classes for showing. Accepts either the string of classes to apply when toggling in, or a 3-tuple containing the transition class, the class to apply to start the transition, and the ending transition class, such as: ["ease-out duration-300", "opacity-0", "opacity-100"].

    The CSS transition classes for hiding. Accepts either string of classes to apply when toggling out, or a 3-tuple containing the transition class, the class to apply to start the transition, and the ending transition class, such as: ["ease-out duration-300", "opacity-100", "opacity-0"].

    time?: number

    The transition duration in milliseconds.