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

PropTypeDefaultDescription
variantCardVariant'outline'
onPress() => voidMakes the whole card a button. Give it an `aria-label`, because children are not read as its name on every platform.
disabledboolean
styleStyleProp<ViewStyle>
nativebooleanLiquid Glass on iOS 26+ when `@leoanimesh/ferrule-native` is available. Ignored with `onPress`, and elsewhere.
titlestring
descriptionstring
endReactNode