Skip to main content

Live Demo

templ-components

97 components across 9 packages — all interactive, all rendered server-side.

# Cards

Standard Card

With title, subtitle, and body

This is a standard card with header and content.

SimpleCard — no header, just content.

# Stat Cards

Users
1,204
Increased by 12%
Revenue
$45.2K
Decreased by -3%
Uptime
99.9%
Active
42

# Badges

DefaultSuccessErrorWarningInfoPill Dot
healthy degraded down pending active

# Buttons

External Link

# Avatars

John Doe
Alice Brown
Charlie Day

# Modal (native dialog)

Demo Modal

This modal uses the native <dialog> element with showModal(). Press Escape or click backdrop to close.

# Drawer (native dialog)

Demo Drawer

Drawer slides in from the side using native <dialog>.

# Dropdown

# Tooltip

# Popover

# Accordion (native details)

What is templ-components?
How do I install it?
Is it production-ready?

# Tabs

# Tabs (Pills variant)

# Table

Name ↑EmailRole
Alice Smithalice@example.comAdmin
Bob Jonesbob@example.comUser

# Table in Card (Flush + Compact)

Recent Users

NameEmailStatus
Alice Smithalice@example.comActive
Bob Jonesbob@example.comInvited

# DataTable (sort + pagination)

Name ↑Email
Alicealice@example.com
Bobbob@example.com

# PageHeader

User Settings

Manage your account preferences and security options

# Definition List

User ID
usr_01JXEXAMPLE
Email
admin@example.com
Plan
Enterprise

# Definition Grid

CPU
42%
Memory
8.2 GB
Disk
156 GB
Uptime
99.9%
Requests
1.2K/s
Latency
12ms

# Grid + Container Query Grid

Normal grid
42
Responsive
12ms
To viewport
99.9%

Container-responsive (resize this box):

Requests/s
42
Latency
12ms
Uptime
99.9%

# Empty States

No users found

Try adjusting your search or filters.

No data to display.

# CopyButton

# RelativeTime

2 hours ago: 1 day ago:

# CountBadge

# ListNote

Showing 50 of 127. Narrow your search to see more.

# Image

Demo Rounded

# HoverCard

# ContextMenu

Right-click the area below:

Right-click here for context menu
Slide 1
Slide 2
Slide 3

# Alerts

# Toast (auto-generated ID, auto-dismiss)

Toasts render into ToastContainer. Each auto-dismisses after 5s.

Settings saved!
Error
Upload failed.
Storage almost full.
New version available.

# Inline Feedback

Username is available
Saving...

# Spinners

# Progress Bars

Uploading... 45%
Complete 100%
Processing...

# Step Indicator

# Skeletons

# Skeleton Card Grid

# Form Controls

Tell us about yourself.

Select a plan
50
Rate quality
go templ

# Calendar

July 2026

Su
Mo
Tu
We
Th
Fr
Sa

# ValidationSummary

# Inline Form (Filter Bar)

You've reached the end

© 2026 templ-components v0.17.0. All rights reserved.

# HTMX LoadingIndicator

Global HTMX loading overlay (shows during any htmx request):

Loading…

# HTMX InlineLoadingOverlay

Per-target loading indicator (shown via hx-indicator):

Loading…

# HTMX LoadingButton

Button swaps text during htmx request:

Saving... Save changes

# HTMX ConfirmDelete

# HTMX CSRFToken

Renders a hidden CSRF input field:

# HTMX SwapOOB

Out-of-band swap element (processed by HTMX after a response):

# HTMX GlobalErrorHandling

Wires up htmx:responseError and htmx:beforeOnError events:

# NotFound404

Page not found

The page you're looking for doesn't exist or has been moved.

# ErrorPage

rejection

The resource was not found

Suggested fix: Check the URL or return to the homepage.

# ErrorAlert (by family)

# ErrorDetail (with context + cause chain)

# All Icons (97)

academic-cap
archive-box
arrow-down
arrow-down-on-square
arrow-left
arrow-right
arrow-right-on-rectangle
arrow-up
arrow-up-on-square
beaker
bell
bell-slash
bolt
bookmark
bug-ant
building-office-2
calculator
calendar
camera
chart
check
check-circle
chevron-down
chevron-left
chevron-right
chevron-up
clipboard
clock
cloud
code-bracket
cube
document
document-duplicate
document-text
download
edit
ellipsis-horizontal
ellipsis-vertical
exclamation-circle
exclamation-triangle
external-link
eye
eye-off
face-smile
filter
fire
folder
folder-open
gift
globe
hashtag
heart
home
inbox
information
key
link
list-bullet
location
lock
mail
map-pin
menu
microphone
minus
moon
no-symbol
paper-airplane
phone
photo
plus
printer
puzzle-piece
question
queue-list
rocket-launch
search
server
settings
share
shield-check
signal
spinner
squares-2x2
star
sun
tag
thumb-up
trash
unlock
upload
user-circle
user-plus
users
wrench
x
x-circle