Card
Card, a React Native component for iOS, Android and web: A surface with a header, content and footer. Optionally pressable.
Usage
import { Button } from './components/ui/button';
import { Card, CardContent, CardFooter, CardHeader } from './components/ui/card';
import { Text } from './components/ui/text';
export default function Example() {
return (
<Card variant="elevated" style={{ maxWidth: 360 }}>
<CardHeader title="Weekly report" description="Sent every Monday" />
<CardContent>
<Text>Each variant is a surface from the same palette, so it reprints with everything else.</Text>
</CardContent>
<CardFooter>
<Button variant="soft">Open</Button>
</CardFooter>
</Card>
);
}Props
| Prop | Type | Default | Description |
|---|---|---|---|
variant | CardVariant | 'outline' | |
onPress | () => void | Makes the whole card a button. Give it an `aria-label`, because children are not read as its name on every platform. | |
disabled | boolean | ||
style | StyleProp<ViewStyle> | ||
native | boolean | Liquid Glass on iOS 26+ when `@leoanimesh/ferrule-native` is available. Ignored with `onPress`, and elsewhere. | |
title | string | ||
description | string | ||
end | ReactNode |