Skip to main content

Cards

Import​

import MNAvatarOnLeftCard from '@/components/ui/cards/MNAvatarOnLeftCard';

Props​

PropTypeRequiredDefaultDescription
imagestring✅–URL or local path for the image displayed on the left.
subtitlestring✅–Subtitle text shown under the title (e.g., date).
titlestring✅–Main title text shown in the card.
imageSizenumber❌60Size (width and height) of the avatar image.
clickAction() => void❌-Callback fired when the card is pressed.
imageBgColorstring❌LIGHTBLUE_COLORBackground color of the image avatar circle.

Basic Usage​

<MNAvatarOnLeftCard
image="https://example.com/avatar.png"
title="John Doe"
subtitle="Joined on May 27, 2025"
imageSize={60}
clickAction={() => console.log('Card clicked')}
imageBgColor="#f0f0f0"
/>

MNCard​

Import​

import MNCard from '@/components/ui/cards/MNCard';

Props​

PropTypeRequiredDefaultDescription
childrenReact.ReactNode✅–Content to be rendered inside the card.
styleViewStyle❌-Additional styles to apply to the card container.
paddingnumber❌16Padding inside the card container.
borderRadiusnumber❌12Border radius of the card container corners.
backgroundColorstring❌WHITE_COLORBackground color of the card.
shadowboolean❌trueWhether to apply shadow styling to the card.

<MNCard
padding={20}
borderRadius={16}
backgroundColor="#fff"
shadow={true}
style={{marginTop: 10}}
>
{/* Your content goes here */}
<Text>This is content inside the card</Text>
</MNCard>

MNImageOnTopCard​

Import​

import MNImageOnTopCard from '@/components/ui/cards/MNImageOnTopCard';

PropTypeRequiredDefaultDescription
imageImageSourcePropType | string | undefined✅–Image source to display at the top of the card.
leftTextstring❌-Optional text displayed on the top-left overlay of the image.
rightIconsstring[]❌-Array of icon names (Ionicons) displayed on top-right overlay.
subtitlestring✅–Subtitle text displayed below the image, on the left side.
subtitleAlongTextstring[]❌-Optional array of texts shown on the right side alongside subtitle, joined by ``.
titlestring✅–Title text displayed below the subtitle section.
onPress() => void❌-Optional callback fired when the card is pressed.

Basic Usage​

<MNImageOnTopCard
image={{uri: 'https://example.com/image.jpg'}}
leftText="Featured"
rightIcons={['heart', 'share-social']}
subtitle="12 Jan 2025"
subtitleAlongText={['100 likes', '50 comments']}
title="This is the card title"
onPress={() => console.log('Card pressed')}
/>

MNProductCard​

Import​

import MNProductCard from '@/components/ui/cards/MNProductCard';

Props​

PropTypeRequiredDefaultDescription
imageImageSourcePropType | string | undefined✅–Image source for the product card.
titlestring✅–Product title displayed below the image.
subtitlestring✅–Subtitle or price displayed below the title.
onPress() => void❌-Optional callback when the card is pressed.
cardStyleobject❌{}Optional style overrides for the card container.

Basic Usage​

<MNProductCard
image={{uri: 'https://example.com/product.jpg'}}
title="Product Name"
subtitle="$99.99"
onPress={() => console.log('Product card pressed')}
/>

MNImageOnTopCard​


Import​

import MNImageOnTopCard from '@/components/ui/cards/MNImageOnTopCard';

Props​

PropTypeRequiredDefaultDescription
imageImageSourcePropType | string | undefined✅–Image source for the card's main image.
rightIconstring | boolean❌trueIcon name to show on the right side. If false, no icon is shown.
subtitlestring[]✅–Array of strings to display as subtitle, joined by "•".
titlestring✅–Title text displayed next to the image.
onPress() => void❌-Function called when the card is pressed.

Basic Usage​

<MNImageOnTopCard
image={{uri: 'https://example.com/image.jpg'}}
title="Activity Title"
subtitle={['Detail 1', 'Detail 2', 'Detail 3']}
rightIcon="chevron-forward"
onPress={() => console.log('Card pressed')}
/>

NOTE: All example can be founded in cards.tsx