Skip to content

Cookie preferences

We use cookies for our own analytics, to see how our campaigns perform and, if you allow it, to load content from other services such as the Google site search. We never sell your data. Necessary cookies keep the site working and cannot be switched off. See our Cookie Policy for details and our Privacy Policy for how we handle personal data.

Security, load balancing and remembering your cookie choice.

Show us which pages people read, how they find the site and where they get stuck, so we can improve it (Google Analytics, Microsoft Clarity).

Show us which of our ad campaigns bring visitors to the site and remember the campaign or partner link you arrived from (Google Ads, LinkedIn, Meta, partner program). We do not use these cookies to build advertising profiles.

Load the site search from Google when you use it. Google sets its own cookies and shows ads in the search results.

© 2026 The ThingsBoard Authors

ThingsBoard Cloud

Choose your data region

Your data stays in the region you choose, for residency and compliance. No credit card required.

Rather run it yourself? Install on your own servers

Simple card

  • Widget
  • 42 installs
  • v1.0.0
  • Nov 24, 2026
  • MIT license
  • v4.2+

Clean value card: one reading from a device or asset with an icon, a label and the time of the last update. Four layouts — horizontal, square, rectangle and centered — and content that scales with the widget, so it fits a slim KPI strip or a big tile without clipping. Color the icon or the value by range, gradient or function, set fonts and colors for every text, and open a dashboard state on click. Decimals and units come from the data key.

Widget Type
  • Latest
Category
  • Cards & Info

Who it’s for

Anyone building a dashboard who needs to answer “what is this reading right now, and is it fresh?” at a glance — a facility manager checking a room temperature, an energy engineer watching today’s consumption, an operator scanning a row of KPIs. One card, one value, no chart to read.

What it does

The card shows the latest value of one data key with its icon, its label and the time of the last update, and keeps all of it legible at any widget size.

  • Four layouts. Horizontal (default): icon, label and last update on the left, value on the right — for KPI strips. Square: icon on top, large value and label at the bottom. Rectangle: label and last update in the header with the icon on the right, value below. Centered: icon, value and label stacked in the middle.
  • Scales with the widget. The value grows and shrinks with the card; the icon, label and time follow more gently so they stay readable. Nothing is ever cut off: if the content is taller than the card everything shrinks, then the last update time and the label are hidden; a value too long for its room shrinks on its own.
  • Colors by value. The icon and the value accept a constant color, ranges, a gradient or a function — for example red above a threshold.
  • Last update time as relative time (“2 minutes ago”, refreshed every 30 seconds), date and time, time only or date only.
  • Card click action to open a dashboard state, a URL or any other widget action. The pointer cursor appears only when an action is configured.
  • Light and clean: a 1 px gray border, no shadow, Roboto, soft tinted icon background.

Limitations: one entity and one data key per card. Booleans and text are shown as they are; units appear only next to numbers.

How to set up

  1. Add the widget to a dashboard and pick a device or asset as the datasource (single entity).
  2. Add one data key — a time series or an attribute.
  3. In the data key settings set Label, Units and Decimals. The card uses them directly.

Data keys

Key Role Type Description
Any key you choose (e.g. temperature) Main value Timeseries or Attribute Number, boolean or text. Numbers use the key’s Decimals (when not set: up to 2, trailing zeros dropped); Units and Label come from the key settings.

When the key has never reported, the card shows N/A (configurable) dimmed and hides the last update time. A boolean is shown as true / false; text values are shown as they are, without units.

How to customize

  • To change the arrangement — Layout → Layout: Horizontal, Square, Rectangle or Centered.
  • To keep fixed font sizes — Layout → turn off Scale content with the card size. Sizes in the settings are then used exactly.
  • To change the icon — Icon → Icon, Icon size, px; Show icon off hides it.
  • To color the icon by value — Icon → Icon color → Range, Gradient or Function.
  • To change the icon background — Icon → Icon background: soft tint of the icon color, a custom color or none; Background shape: rounded square, circle or square.
  • To rename the card — Label → Label text. Empty uses the data key label; {i18n:custom.key} is supported.
  • To style the texts — Label font / color, Value font / color, Units font / color, Last update Font / Color: family, size, weight, style and line height.
  • To color the value by itself — Value → Value color → Range, Gradient or Function.
  • To change the empty state — Value → Text when there is no value.
  • To change or hide the last update time — Last update → Show last update time, Format.
  • To make the card clickable — widget Actions → Card click.
  • To change the frame — widget Appearance / Widget style (background, padding, border, radius). The default is 1px solid #E4E7EC with 8 px radius.

Tips

  • Font sizes in the settings are for a standard card. With scaling on, set them once and resize the widget freely; the card keeps the proportions.
  • For a row of KPIs use Horizontal at about 6 × 2 grid cells; for a grid of tiles use Square or Centered at about 3 × 3.

Share Your Widget with the Community

Built a custom widget? Export it as a JSON from ThingsBoard and publish it to the IoT Hub through a simple 4-step wizard (Upload, Listing, Readme, Review & Submit). Share it with thousands of ThingsBoard developers worldwide and get featured in the catalog.