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

    Type Alias GradumIconSwitchProperties<State, ViewType, DataType, ModelType, EmitterType>

    GradumIconSwitchProperties: GradumIconProperties<
        ViewType,
        DataType,
        ModelType,
        EmitterType,
    > & {
        switchReifect?: | StatefulReifect<State, GradumIcon>
        | StatefulReifectProperties<State, GradumIcon>;
        defaultState?: State;
        appendStateToIconName?: boolean;
    }

    Type Parameters

    • State extends string | number | symbol

      The set of states the icon can switch between.

    • ViewType extends GradumView = GradumView

      The element's view type, if initializing MVC.

    • DataType extends object = object

      The element's data type, if initializing MVC.

    • ModelType extends GradumModel = GradumModel

      The element's model type, if initializing MVC.

    • EmitterType extends GradumEmitter = GradumEmitter

      The element's emitter type, if initializing MVC.

    Properties to initialize a GradumIconSwitch — an icon that swaps its appearance as its state changes.