commonMain.com.aay.compose.baseComponents.ChartDescription.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of chart Show documentation
Show all versions of chart Show documentation
Multiplatform library for desktop and android
The newest version!
package com.aay.compose.baseComponents
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.unit.dp
@Composable
internal fun ChartDescription(
chartColor: Color,
chartName: String,
descriptionStyle: TextStyle,
) {
Row(verticalAlignment = Alignment.CenterVertically) {
Box(
modifier = Modifier
.clip(CircleShape)
.background(color = chartColor)
.size(8.dp)
)
Text(
text = chartName,
modifier = Modifier.padding(start = 10.dp),
style = descriptionStyle
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy