templUI Pro coming soon  

50% OFF Join Waitlist

Card

Container for organizing related content and

Source
TailwindCSS

Create Project

Deploy your new project in one-click.

Installation

templui add card

Examples

Image Left

Left side image

Side Image Card

With left-aligned image

This card demonstrates the left image layout with lazy loading.

Image Right

Side Image Card

With right-aligned image

This card demonstrates the right image layout with lazy loading.

Right side image

Image Top

Card image

Featured Card

With top image

This card shows top image usage with lazy loading for better performance.

Image Bottom

Featured Card

With bottom image

This card shows bottom image usage with lazy loading for better performance.

Card image

API Reference

Required parameter
Hover for description

Card

Main card container component for organizing related content.

Name Type Default
ID
string
-
Class
string
-
Attributes
templ.Attributes
-

Title

Card title component for the main heading.

Name Type Default
ID
string
-
Class
string
-
Attributes
templ.Attributes
-

Description

Card description component for additional context.

Name Type Default
ID
string
-
Class
string
-
Attributes
templ.Attributes
-

Content

Card content area for the main body.

Name Type Default
ID
string
-
Class
string
-
Attributes
templ.Attributes
-