Components
LabeledContent
LabeledContent presents a label and related value using the same compact summary pattern as SwiftUI.
Example
Requires React 18.2+ or 19 and shared styles. See setup.
Default
Loading preview…
Code
'use client';
import { LabeledContent } from '@swiftuijs/ui';
export default function Example() {
return (<LabeledContent label="Email" value="[email protected]"></LabeledContent>);
}Usage and limitations
- Use
valuefor simple text values. - Pass
childrenwhen the trailing content needs richer formatting.
API reference
| Prop | Type | Required | Description |
|---|---|---|---|
label | ReactNode | Yes | The descriptive label shown on the leading side. |
value | ReactNode | No | The trailing value content. |
Inherits additional props from IBaseComponent.