Interactive Components Guide
Click a button to trigger a server-sent toast notification. The server pushes the message via SSE.
Uses native HTML <dialog> element with DaisyUI styling.
Delete confirmation with HTMX form submission and loading indicator.
Focus trapping with x-trap, keyboard navigation, and smooth transitions.
HTMX form submission with SSE toast feedback.
Slides in from the right using modal-end. Has focus trap and smooth transitions.
Slides in from the left using modal-start. Typically used for navigation on mobile.
Slides up from the bottom using modal-bottom. Great for mobile action sheets.
Classic HTMX pattern: click a button, swap HTML content inline. No SSE needed.
Handles HTTP requests and DOM updates with hx-post, hx-swap, and the SSE extension.
Manages local UI state with x-trap for focus, x-transition for animations, and x-data for reactive state.
Server-Sent Events push notifications from server to browser. Simple text/event-stream endpoint.