FastHTML Gallery

Dynamic User Interface (Htmx)

Animations

Animations

Text and Button Animations using HTMX.

Cascading Dropdowns

Cascading Dropdowns

A cascading dropdown component where values in second dropdown are dependent on the value in the first dropdown

Click to Edit Button and 3 lines of text (First Name, Last Name, Email Address)

Click to Edit

A click to edit text component built based on a htmx documentation example.

Click to Load

Click to Load

Dynamically add rows to a table using HTMX.

Dropdown that allows users to add additional options with a button via HTMX

Configurable Select

A searchable dropdown menu with a text box that allows user to add additional options to it via HTMX

App demonstrating a keyboard shortcut to trigger a button press

Custom KeyBindings

Custom KeyBindings to trigger a component

Infinite scroll over a large dataset

Infinite Scroll

A table with infinite scroll over a large dataset (appending rows to the table as the user reaches the end of the table).

Inline field validation showing error message when wrong input type was entered

Inline Field Validation

A form with inline field validation on individual inputs with the submit aditionally validating the whole form.

Loading Indicator that shows when button is pressed until content is loaded

Loading Indicator

A loading indicator that shows when a button is pressed until content is loaded using HTMX's hx-indicator

Multi Image Upload

Multi Image Upload

Upload multiple images. Inspired by a Daniel Corin blog post

Dynamic Progress Bar

Progress Bar

A component that visually represents the completion status of a task or operation as it moves towards completion.

Show and Hide Content Button

Show/Hide Button

A component that shows and hides content on click

Two column simple web app with inputs on the left and outputs on the right

Two Column Grid

A simple two column grid with inputs on the left and outputs on the right based on fasthtml-example form demo

Update Other Content 1

Update Other Content 1

Solution 1 from the HTMX Updating Other Content demo, converted to FastHTML

Web Socket demonstration of chat

Web Sockets

A demonstration on web sockets to have a multi-user messaging/chat use

Visualizations

Demo of Altair plugin for FastHTML

Altair Charts

Interactive altair chart using the fh-altair plugin by Vincent D. Warmerdam

Visualization of a bloch sphere with buttons for qubit gates

Bloch Sphere

Interactive Bloch sphere visualization using the fh-plotly plugin by Carlo Lepelaars

Demo of displaying a Polars dataFrame using FastHTML

Great-Tables Tables

Change the appearance of a Polars dataFrame based on selected colors using the Great Tables library.

Demo of Matplotlib plugin for FastHTML

Matplotlib Charts

Interactive matplotlib chart using the fh-matplotlib plugin by Vincent D. Warmerdam

Demo of Plotly plugin for FastHTML showing 4 types of graphs (line, scatter, Bar, and 3D scatter)

Plotly Interactive Charts

Interactive Plotly chart using the fh-plotly plugin by Carlo Lepelaars that lets you zoom, pan, hover over data points and much more

Demo of SVG based plot (heatmap)

SVG plot

Interactive Seaborn SVG plot by Li (Lily) Cai

Widgets

Example Audio App

Audio

An example audio app

Chat Bubbles

Chat Bubbles

A chat bubble component with no external dependencies

PDF Embed

PDF

PDF Embed

Svg

Click and Drag with D3

Click and Drag

A component that shows a rectangle which can be dragged with the mouse

Simple find and click game

Find and click

The component shows a circle which can be clicked. The first click starts a timer and after 10 clicks the elasped time is reported. Each click causes the circle to move.

Click the shape to swap it with another shape

In band replacement

A component that shows how to do an inband swap of an SVG element

Todo Series

Minimal Todo application

Minimal Todo App (SQLite)

A minimal todo app using SQLite backend.

Intermediate Todo application

Intermediate Todo App (SQLite)

An intermediate todo app using SQLite backend.

Applications

Text Annotator

Text-Annotator

An app built by Alex Volkov that demonstrates annotation use-cases and tailwind styling in FastHTML

A 1D Cellular Automata

Cellular-Automata

A 1D Cellular Automata using FastHTML

CSV Editor Application

CSV Editor

An app to upload csv files, edit in browser, and then download the updated file

A Tic-Tac-Toe game

Tic-Tac-Toe

A Tic Tac Toe game using FastHTML and Tailwind CSS by by Adedara Adeloro