Skip to main content
Version: Next

OCExaminationCard: UI component

The OCExaminationCard card is used in the Vorsorgemanager to show the state of the checkup. There are two size variants: large: to be used within the plugin small: to be shown outside the plugin

Features

  • User can pass the desired details to show like title, description.
  • In style, user can change card state like CheckPending, DueLater, DueSoon, Done and OverDue status.

Card State:

  • CheckPending
  • DueLater
  • DueSoon
  • Done
  • OverDue

How to use OCExaminationCard

  1. Add the necessary imports:

    import your.package.name.OCExaminationCard

  2. Use the OCExaminationCard within your Composable:


//calling the composable with all the required inputs
@Composable
fun OCExaminationCardCheckPendingSmallPreview() {
OCTheme {
OCExaminationCard(
title = "Title",
description = "description text goes here description",
cardState = CheckPending,
cardType = OCExaminationCardSmall
) {
}
}
}

Parameters:

  • title : title of examination card.
  • description : description of examination card.
  • pillTitle : text for pill.
  • cardState : state of examination card
  • cardType : type of examination card either small or large
  • onClick : callback function that is triggered when examination card is clicked