Card

Composable card primitives for headers, content, descriptions, and actions.

Use Card to group related information, actions, and descriptions into a surface with clear spatial hierarchy.

Starter workspace

Ship a consistent docs and component experience across React and Vue.

Use cards for summaries, settings surfaces, marketing CTAs, and denser information blocks that need a clear frame.

import { Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from '@tile-ui/vue';
 
export default function CardDemo() {
	return (
		<Card>
			<CardHeader>

Registry install

pnpm dlx shadcn@latest add @tile-ui/card

Package usage

import { Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter } from '@tile-ui/vue';
<Card>
	<CardHeader>
		<CardTitle>Starter workspace</CardTitle>
		<CardDescription>Ship a consistent docs and component experience.</CardDescription>
	</CardHeader>
	<CardContent>
		<p>Use cards for summaries, settings surfaces, marketing CTAs, and denser information blocks.</p>
	</CardContent>
	<CardFooter>
		<Button variant="outline">Preview</Button>
		<Button>Install</Button>
	</CardFooter>
</Card>

Highlights

  • Slot-based composition
  • Header, content, and footer primitives
  • Renders as div, article, or section via the as prop
  • Useful for docs and app surfaces

Registry dependencies

Item Purpose
card Component source and module styles
core Framework-agnostic logic helpers
styles Shared SCSS tokens and globals

API reference

Card

Prop Type Default Notes
as div | article | section div Chooses the underlying HTML element.

CardHeader

No custom props. Renders a header region with consistent spacing.

CardTitle

No custom props. Renders an <h3> heading.

CardDescription

No custom props. Renders supporting copy below the title.

CardContent

No custom props. The main content region with consistent padding.

CardFooter

No custom props. An action row aligned to the end of the card.