Containers and layout
Card
never nest cards; titles sit outside · **flat — a shadow means pressable or floating**
function CardDemo() { return ( <Card className="w-full"> <CardHeader> <CardTitle>Subscribe to updates</CardTitle> <CardDescription>Enter your details to receive occasional news.</CardDescription> </CardHeader> <CardContent className="gap-4"> <View className="gap-2"> <Label htmlFor="card-email">Email</Label> <Input id="card-email" placeholder="you@example.com" /> </View> </CardContent> <CardFooter className="flex-col gap-2"> <Button className="w-full"> <Text>Subscribe</Text> </Button> <Button variant="outline" className="w-full"> <Text>Later</Text> </Button> </CardFooter> </Card> );}Usage
Never nest cards. Section titles sit outside the card.
API
<Card><CardHeader><CardTitle /><CardDescription /></CardHeader><CardContent /><CardFooter /></Card>Get it
Already in every copy of the native kit:
import { Card } from '@/components/ui/card';Details
- Exports
Card- Installs with
- @halftone-native/lib-utils, @halftone-native/text
- Also searched as
- surface, container, panel
- Registry JSON
- /r/native/card.json
<Card className="w-full max-w-sm"> <CardHeader> <CardTitle>Team plan</CardTitle> <CardDescription>12 of 20 seats used</CardDescription> </CardHeader> <CardContent> <Progress value={60} aria-label="Seats used" /> </CardContent> <CardFooter> <Button variant="outline" size="sm"> Manage seats </Button> </CardFooter></Card>API
<Card><CardHeader><CardTitle /><CardDescription /></CardHeader><CardContent /></Card>Get it
Already in every copy of the web kit:
import { Card, CardHeader, CardTitle, CardDescription, CardAction, CardContent, CardFooter } from '@/components/ui/card';Details
- Exports
Card,CardHeader,CardTitle,CardDescription,CardAction,CardContent,CardFooter- Upstream
- Unchanged from shadcn/ui; installs from their registry.
Agents: the whole registry is at /llms.txt.