Ship faster with goilerplate templUI Pro

Card

Container for organizing related content and

Source Tailwind CSS

Create Project

Deploy your new project in one-click.

PostgreSQL
MySQL
SQLite

Installation

templui add card

Examples

With Image

Card image

Featured Card

With top image

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

API Reference

Required parameter
Hover for description

Card

Main card container component for organizing related content.

Name Type Default
ID

Unique identifier for the card element.

string
-
Class

Additional CSS classes to apply to the card.

string
-
Attributes

Additional HTML attributes to apply to the card element.

templ.Attributes
-

Title

Card title component for the main heading.

Name Type Default
ID

Unique identifier for the title element.

string
-
Class

Additional CSS classes to apply to the title.

string
-
Attributes

Additional HTML attributes to apply to the title element.

templ.Attributes
-

Description

Card description component for additional context.

Name Type Default
ID

Unique identifier for the description element.

string
-
Class

Additional CSS classes to apply to the description.

string
-
Attributes

Additional HTML attributes to apply to the description element.

templ.Attributes
-

Content

Card content area for the main body.

Name Type Default
ID

Unique identifier for the content element.

string
-
Class

Additional CSS classes to apply to the content.

string
-
Attributes

Additional HTML attributes to apply to the content element.

templ.Attributes
-
Axel Adrian