Switch ====== A dashboard switch: toggle (click to flip) or momentary (press and hold). ``switch`` · dashboard .. raw:: html Outputs ------- .. list-table:: :header-rows: 1 * - Port - Type - Unit - Components * - ``y`` - signal - — - — Parameters ---------- .. list-table:: :header-rows: 1 * - Param - Type - Default - Options or unit * - ``mode`` - enum - ``"toggle"`` - ``toggle``, ``momentary`` * - ``initial`` - boolean - ``True`` - — * - ``key`` - text - — - —