Introduction
⚙️ – Core
⚛️ – Atoms-Molecules
AvatarBadgeButtonCheckBoxFieldCircleDividerDownloadCardIconPropertiesAll iconsBasic usageColorsRegular icon sizesClickable icon sizesClickable icon disabledOffsetInputFieldInputFieldButtonLinkListItemOneTimeCodeInputPhotoAvatarRadioGroupFieldRatingSelectFieldSimpleAvatarSpacerSwitchFieldTextToast❌ Icon (Deprecated)❌ Roboto (Deprecated)❌ WorkSans (Deprecated)
🧬 – Organisms
Icon
A simple component to represent any kind of steps or categories
Properties
name
string
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
isDisabled
boolean | undefined
Whether the press behavior is disabled.(it works only when onPress prop is defined)
CustomIcon
ComponentClass<{}, any> | FunctionComponent<{}> | undefined
Custom icon component, that you can get from https://oblador.github.io/react-native-vector-icons/.
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.
Clickable icon disabled
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 <DpIcon />
First item
Second item