MDK Logo
UI Kitreact-devkitComponentsFoundationWidgets

Socket

Per-socket panel showing the miner slotted into a container slot, its state, and quick actions. Displays a socket in a PDU with power/current info, miner sta…

Per-socket panel showing the miner slotted into a container slot, its state, and quick actions.

Displays a socket in a PDU with power/current info, miner status, and heatmap visualization

Features: - Power and current display - Miner status indicators - Heatmap mode with temperature/hashrate - Cooling fan indicator - Socket enable/disable states - Add miner flow

import { Socket } from "@tetherto/mdk-react-devkit";
PropStatusTypeDefaultDescription
current_aOptionalnumber | null | undefinedCurrent in amperes
power_wOptionalnumber | null | undefinedPower in watts
enabledOptionalboolean | undefinedWhether socket is enabled
socketOptionalnumber | null | undefinedSocket number/index
selectedOptionalboolean | undefinedWhether socket is selected
innerRefOptionalReact.ForwardedRef<HTMLDivElement> | undefinedForwarded ref for the container
minerOptionalMiner | null | undefinedMiner data
heatmapOptionalHeatmap | null | undefinedHeatmap configuration
isEditFlowOptionalboolean | undefinedWhether in edit flow mode
clickDisabledOptionalboolean | undefinedWhether click is disabled
coolingOptionalboolean | undefinedCooling status
isEmptyPowerDashedOptionalboolean | undefinedWhether to show dashed border for empty power
isContainerControlSupportedOptionalboolean | undefinedWhether container control is supported
pduOptionalPdu | undefinedPDU information

Usage

Per-socket panel representing a single PDU slot in a container. Shows the miner slotted into that slot, its power/current draw, operating status, heatmap data (temperature or hashrate), and quick actions (add miner, edit flow).

Minimal example

import { Socket } from "@tetherto/mdk-react-devkit";

<Socket socket={1} enabled={true} power_w={3250} current_a={14.5} />

Example

import { Socket } from '@tetherto/mdk-react-devkit'export const SocketExample = () => (  <div className="mdk-example-row">    <Socket socket={1} enabled={true} power_w={3250} current_a={14.5} />    <Socket socket={2} enabled={false} />  </div>)