OudsLabelText
fun OudsLabelText(text: String, modifier: Modifier = Modifier, size: OudsLabelTextSize = OudsLabelTextDefaults.Size, weight: OudsTextWeight = OudsLabelTextDefaults.Weight, color: Color = OudsLabelTextDefaults.Color)
Label styles are intended for compact interface elements such as buttons, form fields, badges, and other small components. Unlike other typography categories, they are not responsive and maintain a fixed size across all breakpoints. This ensures visual consistency and predictable behavior within space-constrained UI elements. Labels should be preferred whenever content is displayed within small components.
Design
| Name | Label |
| Version | 1.0.0 |
Parameters
text
Text to display.
modifier
Modifier applied to the label text.
size
Size of the label text.
weight
Weight of the label text.
color
Color of the label text.
Samples
OudsLabelText(
modifier = Modifier.padding(OudsTheme.spaces.fixed.small),
text = "Label",
size = OudsLabelTextSize.Large,
weight = OudsTextWeight.Strong
)Content copied to clipboard