T templcn/ui

Components

Browse the component docs one page at a time.

This page mirrors the shadcn component index and links each component to its own detail page.

Accordion

accordion

A vertically stacked set of interactive collapsible panels.

templcn add accordion

Alert

alert

Displays a prominent message to call attention to important information.

templcn add alert

Alert Dialog

alert-dialog

A modal dialog that interrupts the user with important content and expects a response.

templcn add alert-dialog

Aspect Ratio

aspect-ratio

Displays content within a desired ratio.

templcn add aspect-ratio

Avatar

avatar

An image element with a fallback for representing the user.

templcn add avatar

Badge

badge

Displays a badge or a component that looks like a badge.

templcn add badge

Breadcrumb

breadcrumb

Displays the path to the current resource using a hierarchy of links.

templcn add breadcrumb

Button

button

Displays a button or a component that looks like a button.

templcn add button

Button Group

button-group

Groups buttons into a connected control surface.

templcn add button-group

Calendar

calendar

A date field component that allows users to enter and edit dates.

templcn add calendar

Card

card

Displays a card with header, content, and footer.

templcn add card

Carousel

carousel

A carousel with motion and swipe built using native scroll behavior.

templcn add carousel

Chart

chart

Beautiful charts built with TanStack Charts, server rendering, and SVG marks.

templcn add chart

Checkbox

checkbox

A control that allows the user to toggle between checked and not checked.

templcn add checkbox

Collapsible

collapsible

An interactive component which expands/collapses a panel.

templcn add collapsible

Combobox

combobox

Autocomplete input and command palette with a list of suggestions.

templcn add combobox

Command

command

Fast, composable, unstyled command menu for Go and templ.

templcn add command

Context Menu

context-menu

Displays a menu to the user — triggered by a right-click or long-press.

templcn add context-menu

Data Table

data-table

Powerful table and datagrids built using Go rendering and TanStack Table.

templcn add data-table

Date Picker

date-picker

A date picker component with range and presets.

templcn add date-picker

Dialog

dialog

A window overlaid on either the primary window or another dialog window.

templcn add dialog

Direction

direction

Sets the reading direction of content (LTR or RTL).

templcn add direction

Drawer

drawer

A drawer component for mobile-friendly bottom/side slide-over surfaces.

templcn add drawer

Dropdown Menu

dropdown-menu

Displays a menu to the user — such as a set of actions or functions — triggered by a button.

templcn add dropdown-menu

Empty

empty

A placeholder helper for empty datasets, searches, and lists.

templcn add empty

Field

field

A form field grouping component with label, description, and error slots.

templcn add field

Hover Card

hover-card

For sighted users to preview content available behind a link.

templcn add hover-card

Input

input

Displays a form input field or a component that looks like an input field.

templcn add input

Input Group

input-group

Input with leading/trailing addons and icon slots.

templcn add input-group

Input OTP

input-otp

Accessible one-time password component with copy paste functionality.

templcn add input-otp

Item

item

A generic list/card item surface with header, body, and action slots.

templcn add item

Kbd

kbd

A keyboard shortcut token styled as a key badge.

templcn add kbd

Label

label

Renders an accessible label associated with controls.

templcn add label

Menubar

menubar

A visually persistent menu common in desktop applications that provides quick access to a consistent set of commands.

templcn add menubar

Native Select

native-select

A styled native HTML select element.

templcn add native-select

Navigation Menu

navigation-menu

A collection of links for navigating websites.

templcn add navigation-menu

Pagination

pagination

Pagination with page navigation, next and previous links.

templcn add pagination

Popover

popover

Displays rich content in a portal, triggered by a button.

templcn add popover

Progress

progress

Displays an indicator showing the completion progress of a task, typically displayed as a progress bar.

templcn add progress

Radio Group

radio-group

A set of checkable buttons—known as radio buttons—where no more than one button can be checked at a time.

templcn add radio-group

Resizable

resizable

Accessible resizable panel groups and layouts with keyboard support.

templcn add resizable

Scroll Area

scroll-area

Augments native scroll functionality for custom, cross-browser styling.

templcn add scroll-area

Select

select

Displays a list of options for the user to pick from—triggered by a button.

templcn add select

Separator

separator

Visually or semantically separates content.

templcn add separator

Sheet

sheet

Extends the Dialog component to display content that complements the main screen.

templcn add sheet

Sidebar

sidebar

A composable, themeable and customizable sidebar component.

templcn add sidebar

Skeleton

skeleton

Use to show a placeholder while content is loading.

templcn add skeleton

Slider

slider

An input where the user selects a value from within a given range.

templcn add slider

Sonner

sonner

An opinionated toast component for Go and templ.

templcn add sonner

Spinner

spinner

A lightweight animated loading indicator.

templcn add spinner

Switch

switch

A control that allows the user to toggle between checked and not checked.

templcn add switch

Table

table

A responsive table component.

templcn add table

Tabs

tabs

A set of layered sections of content—known as tab panels—that are displayed one at a time.

templcn add tabs

Textarea

textarea

Displays a form textarea or a component that looks like a textarea.

templcn add textarea

Toast

toast

A succinct message that is displayed temporarily.

templcn add toast

Toggle

toggle

A two-state button that can be either on or off.

templcn add toggle

Toggle Group

toggle-group

A set of two-state buttons that can be toggled on or off.

templcn add toggle-group

Tooltip

tooltip

A popup that displays information related to an element when the element receives keyboard focus or the mouse hovers over it.

templcn add tooltip

Typography

typography

Styles for headings, paragraphs, lists...etc

templcn add typography

Attachment

attachment

A compact file attachment surface with media, status, content, and actions.

templcn add attachment

Bubble

bubble

A chat bubble with variants, alignment, content, and reactions.

templcn add bubble

Marker

marker

A compact inline marker for labels, separators, and metadata.

templcn add marker

Message

message

Displays a message in a conversation, with optional avatar, header, footer, and alignment.

templcn add message

Message Scroller

message-scroller

A chat transcript scroller that manages anchored turns, streaming output, history loading, and scroll controls.

templcn add message-scroller