MDK Logo
UI Kitreact-devkitComponentsFoundationWidgets

TanksBox

Card listing all tanks inside an immersion container with per-tank temperature and pressure rows. Displays tank rows with temperature, pressure, and oil/wate…

Card listing all tanks inside an immersion container with per-tank temperature and pressure rows.

Displays tank rows with temperature, pressure, and oil/water pump status.

import { TanksBox } from "@tetherto/mdk-react-devkit";
PropStatusTypeDefaultDescription
dataOptional{ oil_pump: Tank[]; water_pump: WaterPump[]; pressure: TanksBoxPressure[]; } | undefined

Usage

TanksBox renders the full tank list for an immersion container, one TankRow per tank. Each row shows per-tank temperature, pressure, and oil/water pump running status.

TanksBox Props

PropTypeRequiredDefaultDescription
data{ oil_pump: Tank[]; water_pump: WaterPump[]; pressure: TanksBoxPressure[] }noTank telemetry arrays; returns null when omitted.

TankRow Props

PropTypeRequiredDefaultDescription
labelstringyesTank identifier label (e.g. "Tank 1").
temperaturenumberyesCurrent temperature value.
unitstringyesTemperature unit string (e.g. "°C").
oilPumpEnabledbooleanyesRunning state for the oil pump.
waterPumpEnabledbooleanyesRunning state for the water pump.
colorstringyesCSS colour for the temperature value (threshold-driven).
flashbooleannoEnables flash animation on the temperature row.
tooltipstringnoTooltip text for the temperature value.
pressureTankRowPressureyesPressure reading with optional flash/colour/tooltip.

Minimal example

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

<TanksBox
  data={{
    oil_pump: [{ cold_temp_c: 45, enabled: true }],
    water_pump: [{ enabled: true }],
    pressure: [{ value: 1.2 }],
  }}
/>

Example

import { TanksBox } from '@tetherto/mdk-react-devkit'export const TanksBoxExample = () => (  <div className="mdk-example-row">    <TanksBox      data={{        oil_pump: [          { cold_temp_c: 45, enabled: true, color: 'green' },          { cold_temp_c: 48, enabled: true, color: 'yellow' },        ],        water_pump: [{ enabled: true }, { enabled: false }],        pressure: [{ value: 1.2 }, { value: 1.5 }],      }}    />  </div>)