PatientCard.Gender
A visual gender indicator component with icon support and themed styling. Provides accessible gender display for healthcare applications with localization support and multiple visual variants.
- Stable unknown
- Release candidate since 1.16.1-rc.3
- Development since 1.16.1-dev.2111+9796905
A visual gender indicator component with icon support and themed styling. Provides accessible gender display for healthcare applications with localization support and multiple visual variants.
Basic Example
import { PatientCard } from "@ovok/native";
import * as React from "react";
const gender = "male" as const;
const ProviderGenderDisplay = () => <PatientCard.Gender gender={gender} />;
export default ProviderGenderDisplay;
Props
Every prop, with its type and description, is listed in the @ovok/native/patient API reference.
Component Behavior
Gender Icons
- Male: ♂ symbol with blue color theme (#2196F3)
- Female: ♀ symbol with pink color theme (#E91E63)
- Other: ⚲ symbol with purple color theme (#9C27B0)
- Missing: Returns null when
genderis absent; the public type does not include anunknownvalue
Visual Variants
- Chip: Bordered container with background color and rounded corners
- Default: Simple inline display with icon and text
Localization
The component uses these translation keys:
{
"gender": {
"male": "Male",
"female": "Female",
"other": "Other"
}
}Styling
Theme Colors Used
- Gender-specific colors for icons and backgrounds
theme.spacing(1)- Gap between icon and text (4px default)theme.spacing(3)- Chip horizontal padding (12px default)theme.borderRadius(3)- Chip corner radius (12px default)theme.fonts.labelMedium- Chip text typographytheme.fonts.bodyMedium- Default variant typography
Last updated on
PatientCard
A touchable card container component designed for displaying patient information in healthcare applications. Built with compound architecture to provide flexible composition of patient data elements with consistent Material Design 3 styling; add accessibility semantics through the touchable props in the host app.
PatientList
High-performance patient directory component built on FlashList for efficient rendering of large patient datasets. Provides default patient card rendering with customizable item rendering and automatic spacing.