Data label
A label, value, icon, and caption composition for compact data display.
A label, value, icon, and caption composition for compact data display.
Public API
FDataLabelFDataValuePositionFDataIconPositionFDataLabelCaption
Example
FDataLabel(
value: .decimal(72.4, format: .oneDecimal),
label: .string("kg"),
icon: "scalemass",
caption: .plain(.string("Current weight"))
)
Source
This reference follows Sources/FreakUI/Components/DataDisplay/FDataLabel.swift. Component-specific configuration is documented under the public initializer, modifier, and supporting types in that source file.