ZUI

Search documentation

Find a page or a heading.

Card

A surface that groups related content, composed from a header, content and a footer.

Installation

bash

The CLI writes components/ui/card.tsx and installs Text and Utils.

Usage

tsx
tsx

The Text inside a Card takes the card's text colour and size.

API reference

Card

Takes every prop of React Native's View, plus:

sm tightens the spacing inside the card from 24px to 16px, in every part.

CardHeader, CardContent, CardFooter

Each takes every prop of React Native's View. CardHeader holds the title and description. CardFooter lays its children out in a row, such as actions.

CardTitle, CardDescription

Each takes every prop of Text. CardTitle is announced as a heading, and CardDescription is the muted line under it.