gradum-kit - v0.1.0
    Preparing search index...

    Type Alias StatefulReifectCoreProperties<State, ClassType>

    What a StatefulReifect applies to its objects on each state switch. Beyond the named entries, any other key is treated as a property to set on the object itself.

    type StatefulReifectCoreProperties<
        State extends KeyType,
        ClassType extends object = Element,
    > = {
        styles?: PropertyConfig<StylesType, State, ClassType>;
        classes?: PropertyConfig<string | string[], State, ClassType>;
        replaceWith?: PropertyConfig<ClassType, State, ClassType>;
        [k: string | number | symbol]: any;
    }

    Type Parameters

    • State extends KeyType

      The set of states the reifect can switch between.

    • ClassType extends object = Element

      The type of the attached object.

    Indexable

    • [k: string | number | symbol]: any
    Index

    Inline styles to apply per state.

    classes?: PropertyConfig<string | string[], State, ClassType>

    CSS classes to toggle per state.

    An object to swap the attached one out for, per state.