GuidesComponentsobservation-detail

ObservationDetail.SingleCardDataRow

A label-value data row component designed for structured display of healthcare information. Provides consistent spacing, typography, and layout for observation data presentation.

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

A label-value data row component designed for structured display of healthcare information. Provides consistent spacing, typography, and layout for observation data presentation.

Basic Example

import { ObservationDetail } from "@ovok/native";
import * as React from "react";

const BasicMedicalData = () => (
  <>
    <ObservationDetail.SingleCardDataRow label="Systolic (mmHg)" value="120" />
    <ObservationDetail.SingleCardDataRow label="Diastolic (mmHg)" value="80" />
    <ObservationDetail.SingleCardDataRow label="Heart Rate (bpm)" value="72" />
  </>
);

export default BasicMedicalData;

Props

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

Component Behavior

Layout System

  • Uses flexbox row layout with space-between alignment
  • Label text is flexible and can wrap
  • Value text is right-aligned and fixed-width
  • Consistent vertical padding and alignment

Typography

  • Standard 16px font size for both label and value
  • Normal font weight (400) for medical data readability
  • Inherits theme typography when available

Styling

Theme Colors Used

  • theme.spacing(4) - Vertical padding (16px default)
  • theme.spacing(6) - Horizontal padding (24px default)

Last updated on

On this page