Label
A standard label for user interface items, consisting of an icon with a title.
Example​
- swiftui-react-native
- SwiftUI
- React Native
<Label title="Super Fast" systemImage="bolt.fill" />
Label("Super Fast", systemImage: "bolt.fill")
<View style={{ flexDirection: 'row' }}>
<Image source={require('./assets/bolt-fill.png')}>
<Text>Super Fast<Text>
</View>
Props​
Label inherits all View Modifiers as props.
prop | description | type | required | default |
---|---|---|---|---|
title | A title for the label. | string | no | undefined |
systemImage | The SF Symbol name to render as the icon. | SystemName | no | undefined |