Skip to main content

Cards

Import

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

Props

PropTypeRequiredDefaultDescription
imagestringURL or local path for the image displayed on the left.
subtitlestringSubtitle text shown under the title (e.g., date).
titlestringMain title text shown in the card.
imageSizenumber60Size (width and height) of the avatar image.
clickAction() => void-Callback fired when the card is pressed.
imageBgColorstringLIGHTBLUE_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.ReactNodeContent to be rendered inside the card.
styleViewStyle-Additional styles to apply to the card container.
paddingnumber16Padding inside the card container.
borderRadiusnumber12Border radius of the card container corners.
backgroundColorstringWHITE_COLORBackground color of the card.
shadowbooleantrueWhether 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 | undefinedImage 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.
subtitlestringSubtitle text displayed below the image, on the left side.
subtitleAlongTextstring[]-Optional array of texts shown on the right side alongside subtitle, joined by ``.
titlestringTitle 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 | undefinedImage source for the product card.
titlestringProduct title displayed below the image.
subtitlestringSubtitle 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 | undefinedImage source for the card's main image.
rightIconstring | booleantrueIcon name to show on the right side. If false, no icon is shown.
subtitlestring[]Array of strings to display as subtitle, joined by "•".
titlestringTitle 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