Tile.MeasuredValue
Display component for measurement results with value, unit, and timestamp
- Stable unknown
- Release candidate since 1.16.1-rc.3
- Development since 1.16.1-dev.2111+9796905
Displays measurement results with a prominent value, unit label, and timestamp in a consistent format for healthcare data.
Quick Example
import { Tile } from "@ovok/native";
import React from "react";
const MeasuredValueExample = () => {
return (
<Tile>
<Tile.MeasuredValue
value="120/80"
unit="mmHg"
time="15:34"
testID="blood-pressure-value"
/>
</Tile>
);
};
export default MeasuredValueExample;Props
Every prop, with its type and description, is listed in the @ovok/native/tile API reference.
Component Behavior
The MeasuredValue component displays data in a structured layout:
- Value and Unit Row: Value and unit are displayed side-by-side with baseline alignment
- Value Prominence: Large, bold text for the measurement value (24px, primary color)
- Unit Styling: Smaller, muted text for the unit (14px, disabled color)
- Timestamp: Displayed below the value in smaller, muted text (12px, disabled color)
- Typography: Uses custom DMSans font family for enhanced readability
Layout Structure
┌─────────────────────────┐
│ [VALUE] [UNIT] │ ← Baseline aligned
│ [TIMESTAMP] │ ← Below value/unit
└─────────────────────────┘Styling
Theme Colors Used
theme.colors.primary- Value text color for prominencetheme.colors.onSurfaceDisabled- Unit and timestamp text color for subtle appearancetheme.spacing(1)- Gap between value and unit
Typography Specifications
Value Text
- Font Family: DMSans_700Bold
- Font Size: 24px
- Color: theme.colors.primary
- Weight: Bold (700)
Unit Text
- Font Family: DMSans_400Regular
- Font Size: 14px
- Color: theme.colors.onSurfaceDisabled
- Weight: Regular (400)
Time Text
- Font Family: DMSans_400Regular
- Font Size: 12px
- Color: theme.colors.onSurfaceDisabled
- Weight: Regular (400)
Related Components
- Tile.NoMeasuredValue - Placeholder when no data is available
- Tile.MeasuringSpinner - Loading state during measurements
- Tile.Status - Device status when not measuring
Last updated on