Skip to main content
Version: Next

OnboardCardView Component

The onboardCardView component is a reusable onboardCardView that allows you to create customizable onboardCardView by setting with image composable, title and description.

Features

  • Create onboardCardView.
  • Customize image composable, title and description.
  • In image composable you can pass Image, CoilImage, GlideImage, etc.

Installation

  1. Use the OCOnboardingCardView composable in your UI:
val desc = "This is test message for description."
val title = "This is title."
OCOnboardingCardView(
title = title,
description = desc,
imageComposable = {
// Here, you can pass any image composable of your choice
// For example, you can use Image, CoilImage, GlideImage, etc.
Image(
painter = painterResource(id = R.drawable.placeholder),
contentDescription = null
)
}
)