ObservationDetail.DataContainer
A themed card container component for grouping related observation data with consistent styling, shadows, and Material Design 3 theming. Provides structured presentation for healthcare information.
- Stable unknown
- Release candidate since 1.16.1-rc.3
- Development since 1.16.1-dev.2111+9796905
A themed card container component for grouping related observation data with consistent styling, shadows, and Material Design 3 theming. Provides structured presentation for healthcare information.
Basic Example
import { ObservationDetail } from "@ovok/native";
import * as React from "react";
const vitals = {
systolic: 120,
diastolic: 80,
heartRate: 70,
temperature: 37.5,
};
const VitalSignsContainer = () => (
<ObservationDetail.DataContainer>
<ObservationDetail.SingleCardDataRow
label="Blood Pressure"
value={`${vitals.systolic}/${vitals.diastolic} mmHg`}
/>
<ObservationDetail.SingleCardDataRow
label="Heart Rate"
value={`${vitals.heartRate} bpm`}
/>
<ObservationDetail.SingleCardDataRow
label="Temperature"
value={`${vitals.temperature}°C`}
/>
</ObservationDetail.DataContainer>
);
export default VitalSignsContainer;Props
Every prop, with its type and description, is listed in the @ovok/native/observation-detail API reference.
Component Behavior
Visual Design
- Material Design 3 card appearance with elevation
- Themed border and shadow colors
- Rounded corners with theme-based radius
- Consistent padding and spacing
Theme Integration
- Automatically applies surface colors
- Respects theme border and shadow colors
- Uses theme-based border radius and spacing
- Supports light and dark mode variations
Styling
Theme Colors Used
theme.colors.surface- Card background colortheme.colors.outlineVariant- Card border colortheme.colors.shadow- Card shadow colortheme.borderRadius(2)- Card corner radius (8px default)
Last updated on
ObservationDetail
The ObservationDetail module provides a comprehensive solution for displaying detailed healthcare observation data in a structured, scrollable layout. Built as a compound component system optimized for medical data presentation with support for various data types, photos, and resource information.
ObservationDetail.DateTime
A date and time display component with flexible formatting options and fallback content support. Designed for healthcare observation timestamps with localization and conditional rendering capabilities.