Introduction
Installation
Next.jsViteLaravelReact RouterRemixAstroTanStack StartTanStack RouterManual InstallationMCP
All componentsTheme
FieldFormInputText FieldTextareaSearch FieldInput OTPNumber FieldNumber FormatSliderCheckboxSwitchRadioSelectCombo BoxList BoxChoice BoxMulti SelectToken FieldNewTag FieldTag GroupCalendarDate FieldDate PickerDate Range PickerRange CalendarTime FieldColor PickerColor FieldColor AreaColor SliderColor SwatchColor Swatch PickerColor ThumbColor WheelDrop ZoneFile Trigger
ButtonButton GroupToggleToggle GroupPreskok Auth Button
EditorHeadingLinkTextKeyboard
CardContainerGrid ListResizableTableTreeSeparatorDescription ListScroll AreaShow MoreToolbar
BreadcrumbsNavbarPaginationTabsSidebar
DialogModalDrawerPopoverPreview TriggerNewSheetTooltipContext MenuDropdownCommandCommand MenuDisclosureMenu
ToastProgress BarProgress CircleMeterLoaderSkeletonNoteBadge
Chart (helpers)Area ChartBar ChartLine ChartPie ChartExperimental ChartsNewExperimental Radial ChartNewExperimental Radar ChartNewBar ListTracker
Async ImageAvatarCarouselPreskok Icon
Layout

Card

Content containers with headers, actions, and flexible layouts for organizing information.

View as MarkdownAsk ChatGPT

Installation

npx shadcn@latest add @preskok/card

Usage

import { Button } from "@/components/ui/preskok-ui/button"
import {
  Card,
  CardAction,
  CardContent,
  CardDescription,
  CardFooter,
  CardHeader,
  CardTitle,
} from "@/components/ui/preskok-ui/card"

export function CardDemo() {
  return (
    <Card>
      <CardHeader>
        <CardTitle>Card Title</CardTitle>
        <CardDescription>Card description goes here</CardDescription>
      </CardHeader>
      <CardContent>
        <p>Card content goes here.</p>
      </CardContent>
      <CardFooter>
        <Button>Action</Button>
      </CardFooter>
    </Card>
  )
}

Components

Card

The root card container.

PropTypeDefaultDescription
classNamestring-Additional CSS classes

CardHeader

Card header section with optional title and description.

PropTypeDefaultDescription
titlestring-Header title
descriptionstring-Header description
classNamestring-Additional CSS classes

CardTitle

Standalone card title component.

PropTypeDefaultDescription
classNamestring-Additional CSS classes

CardDescription

Standalone card description component.

PropTypeDefaultDescription
classNamestring-Additional CSS classes

CardAction

Card action area, typically placed in the header.

PropTypeDefaultDescription
classNamestring-Additional CSS classes

CardContent

Main content area of the card.

PropTypeDefaultDescription
classNamestring-Additional CSS classes

CardFooter

Card footer section for actions or additional content.

PropTypeDefaultDescription
classNamestring-Additional CSS classes

Examples

Features

  • Flexible layout - Compose cards with different sections
  • Optional elements - Use only the components you need
  • Consistent spacing - Built-in spacing between sections
  • Responsive design - Adapts to different screen sizes
  • Customizable styling - Full control over appearance
  • Semantic structure - Proper HTML structure for accessibility

Keyboard

Display keyboard shortcuts inline and benefit from built-in focus behavior.

Container

Responsive container with optional constrained padding.

On this page

Installation
Usage
Components
Card
CardHeader
CardTitle
CardDescription
CardAction
CardContent
CardFooter
Examples
Features
Release readiness
Checkout redesign launch checklist
QA passComplete
Rollout20%
OwnerGrowth
Team capacity
Engineering coverage for this week
12

Available reviewers across three squads.

Release readiness
Checkout redesign launch checklist
QA passComplete
Rollout20%
OwnerGrowth
Team capacity
Engineering coverage for this week
12

Available reviewers across three squads.