Skip to content

Card

Types Primitives

Text Component

Demo


Shows a card component.

Installation

Terminal window
npx @react-native-reusables/cli@latest add card

Usage

import {
Card,
CardContent,
CardDescription,
CardFooter,
CardHeader,
CardTitle,
} from '~/components/ui/card';
import { Text } from '~/components/ui/text';
function Example() {
return (
<Card className='w-full max-w-sm'>
<CardHeader>
<CardTitle>Card Title</CardTitle>
<CardDescription>Card Description</CardDescription>
</CardHeader>
<CardContent>
<Text>Card Content</Text>
</CardContent>
<CardFooter>
<Text>Card Footer</Text>
</CardFooter>
</Card>
);
}

Props

Card

Extends View props

CardHeader

Extends View props

CardTitle

Extends Text props

CardDescription

Extends Text props

CardContent

Extends View props

CardFooter

Extends View props