🎉Paper UI v2.0 is here!
See what's new

PUCard Component

A flexible card component with hand-drawn style borders and smooth hover animations

Usage

Basic Usage

Simple Card

This is a simple card with basic content.

Card with Image

Avatar

Card with Image

This card includes an image at the top.

Card with Actions

Card with Actions

This card includes action buttons.

Card Sizes

Small Card

Small size card.

Medium Card

Medium size card.

Large Card

Large size card.

Props

PropTypeRequiredDefaultDescription
variantsimple | image | actionsNosimpleCard variant style
sizesmall | medium | largeNomediumCard size
imagestringNo''Image URL for image variant
imageAltstringNo''Alt text for image
customClassstringNo''Custom CSS classes

Slots

SlotPropsDescription
default-Main card content
actions-Action buttons area

Features

  • Hand-drawn style borders and organic visual effects
  • Multiple variants: simple, image, actions
  • Responsive design with different sizes
  • Smooth hover animations and transitions
  • Dark mode support
  • Accessible structure and keyboard navigation

Dependencies

  • Tailwind CSS for styling
  • Vue 3 Composition API
  • PUButton for action buttons