GuidesComponentsdiary

DiaryCard.MeasuredValue

Displays a measured value with unit and timestamp. Inherited from the Tile module and themed for consistency across diary cards.

  • Stable unknown
  • Release candidate since 1.16.1-rc.3
  • Development since 1.16.1-dev.2111+9796905

Displays a measured value with unit and timestamp. Inherited from the Tile module and themed for consistency across diary cards.

Basic Example

import { MeasurementTypeKey } from "@ovok/core/next";
import { DiaryCard } from "@ovok/native";
import * as React from "react";

const BasicDiaryCardMeasuredValueExample = () => {
  return <DiaryCard.MeasuredValue value="70" unit="kg" time="15:34" />;
};

export default BasicDiaryCardMeasuredValueExample;

Props

Every prop, with its type and description, is listed in the @ovok/native/diary API reference.

Styling

Theme Colors Used

  • theme.colors.primary - Value color
  • theme.colors.onSurfaceDisabled - Unit and time colors

Last updated on

On this page