SwiftUI.js
Components

LabeledContent

LabeledContent presents a label and related value using the same compact summary pattern as SwiftUI.

LabeledContent presents a label and related value using the same compact summary pattern as SwiftUI.

Examples

Default

Preview unavailable for this example in the static docs build.

Show code
<LabeledContent label="Email" value="[email protected]"></LabeledContent>

API

PropTypeRequiredDescription
labelReactNodeYesThe descriptive label shown on the leading side.
valueReactNodeNoThe trailing value content.

Inherits additional props from IBaseComponent.

Overview

LabeledContent presents a label and related value using the same compact summary pattern as SwiftUI.

Notes

  • Use value for simple text values.
  • Pass children when the trailing content needs richer formatting.

On this page