Text
A fundamental composable for displaying text.
Properties
Preview
Hello, Compose!
Generated Code
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.text.font.FontStyle
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.sp
@Composable
fun MyText() {
Text(
text = "Hello, Compose!",
)
}