Kinetic UI
Back to Introduction
Data Display

Card

Displays a card with header, content, and footer.

Quick Actions
CLI Installation
npx kinetic-ui-cli@latest add card

The Card component is a flexible container used to group related content and actions together in a visually distinct block.

Live Preview

Card

Create project

Deploy your new project in one-click.

FrameworkNext.js

Installation

npx kinetic-ui-cli@latest add card

Usage Guide

1. Import the Component

Import the component into your React or Next.js page:

import { Card } from "@/components/ui/card";

2. Implementation Example

Render the component and customize its behavior by passing props:

import { Card } from "@/components/ui/card";

export default function Example() {
  return (
    <div className="w-full flex items-center justify-center p-8">
      <Card
      />
    </div>
  );
}
Performance Notes
  • Uses CSS hardware acceleration via GPU transform-binds.
  • Damped interpolation minimizes paint-redraw flashes.
  • Tree-shakable import: only compiles elements requested.
Accessibility Notes
  • Full keyboard focus-ring navigation support (`Tab`/`Shift+Tab`).
  • ARIA roles mapped correctly for assistive screen readers.
  • Respects `prefers-reduced-motion` system toggles.