gemini-2.5-pro| input-price: 1.25 output-price: 10 max-context-length: 200_000 (cost: $0.03) Β· Anfrage: 2025-09-27T09:43:25.333042

Generated by rs-summarizer Version unbekannt

Abstract:

This document is a comprehensive technical reference for the HTML data-* attributes of the Datastar framework, a library designed for building reactive web interfaces by embedding logic directly into the DOM. It details a wide range of attributes for managing application state through "signals," a core reactive primitive. Key functionalities covered include two-way data binding (data-bind), dynamic attribute and class manipulation (data-attr, data-class), conditional element visibility (data-show), and event handling (data-on) with advanced modifiers for debouncing and throttling. The guide also explains attributes for managing derived state (data-computed) and side effects (data-effect). The documentation distinguishes between standard attributes and "Pro" attributes, available under a commercial license, which add advanced capabilities like state persistence (data-persist), URL synchronization (data-query-string), and animations. Foundational concepts such as attribute processing order, casing conventions, and built-in error handling are also outlined.

Datastar Framework: A Guide to its Core Reactive Attributes

Summary Rating: No ratings yet
Article Rating: No ratings yet

Source