Introduction
⚙️ – Core
⚛️ – Atoms-Molecules
AvatarBadgePropertiesBasic usageVariationsVariations without EnfasisUsage with Text components insideExamples using badges in different contextsButtonCheckBoxFieldCircleDividerDownloadCardIconInputFieldInputFieldButtonLinkListItemOneTimeCodeInputPhotoAvatarRadioGroupFieldRatingSelectFieldSimpleAvatarSpacerSwitchFieldTextToast❌ Icon (Deprecated)❌ Roboto (Deprecated)❌ WorkSans (Deprecated)
🧬 – Organisms
Badge
Use Badges to inform users about premium features or new features release.
Properties
color
"gray" | "primary" | "info" | "success" | "danger" | "warning" | "calm" | undefined
info
🎨 Color variant
emphasis
"high" | "low" | undefined
high
Color variant emphasis
children
string | Text | undefined
Text to be displayed inside the badge it can be a string or a Text component (including DPText)
style
StyleProp<ViewStyle>
Contextual style, use only as last resort
Basic usage
blue
Variations
info
calm
success
warning
alert
gray
Variations without Enfasis
info
calm
success
warning
danger
gray
Usage with Text components inside
You can use a Text or DpText component within the badge if you need better control over the text styles.
With DpText
With DpText and type "badge"
With Text
Examples using badges in different contexts
Hello world
gray
Profile
New
Premium
Kaiya Septimus