Introduction
⚙️ – Core
⚛️ – Atoms-Molecules
AvatarBadgeButtonCheckBoxFieldCircleDividerDownloadCardIconInputFieldInputFieldButtonLinkListItemOneTimeCodeInputPhotoAvatarRadioGroupFieldRatingSelectFieldSimpleAvatarSpacerSwitchFieldTextToast❌ Icon (Deprecated)PropertiesAll iconsBasic usageColorsRegular icon sizesClickable icon sizesOffset❌ Roboto (Deprecated)❌ WorkSans (Deprecated)
🧬 – Organisms
Icon @deprecated use DpIcons instead
A simple component to represent any kind of steps or categories
Properties
name
MobileUiKitIconsId
required
Name of the icon
color
string | undefined
#627282
Color
size
"xs" | "sm" | "md" | "lg" | "xxs" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | undefined
sm
Size based on 4px scale
offset
"left" | "right" | "top" | "bottom" | undefined
Offset to better align the icon to content
onPress
(() => void) | undefined
onPress callback
All icons
Basic usage
Colors
Regular icon sizes
Clickable icon sizes
Please note extra bit of padding around the icon to make the clickable area bigger.
Offset
Having an extra bit of padding in a clickable icon sometimes makes it difficult to align it properly.
For this reason, we added offset
prop that neutralizes this padding with a negative margin.
Problem
First item
Second item
Solution
Adding offset
to <Icon />
First item
Second item