Skip to main content
Version: Next

errorstate

Doctor Card Composable

The OCDoctorCard composable allows you to display essential information about a doctor, including their name, specialty, address, distance, opening times, and bookmark status.

How to use OCDoctorCard

  1. Add the necessary imports:

    import your.package.name.OCDoctorCard

  2. Use the OCDoctorCard within your Composable:

   val isBookmarked = remember {
mutableStateOf(false)
}
OCDoctorCard(
"Doctor Name",
"Heart Speciality",
"Noida",
"1024 KM",
"10 am to 9 pm",
isBookmarked = isBookmarked.value,
availabilityIconTintColor = OCColors.green400
onBookmarkClick = {
// hanlde bookmark icon click here
}
)

Parameters:

  • doctorName : The name of the doctor
  • speciality : The doctor's speciality (optional)
  • address : The doctor's address
  • distance : The distance to the doctor's location (optional)
  • openingTimes : The doctor's opening times
  • isBookmarked : Indicates whether the doctor is bookmarked
  • onBookmarkClick: Callback function for bookmark click (optional)
  • availabilityIconTintColor: to change availability icon tint color (optional)
  • modifier : To add further modification to card