API Reference
referenceEvery shipped Reactive CSS feature in 0.9.0, grouped by what it is. The machine-readable source is ReactiveCSS.describe(), which returns the same data with syntax, parameters and status.
This reference describes Reactive CSS 0.9.0. Reactive CSS is not standard CSS: its runtime reads these extensions from your stylesheets and interprets them. 0.9 adds event rules with :on(), state mutations, event(), drag gestures, bind() and persist() in state(), --attr-*, content as DOM text and :blur. The reference lists the 0.9 syntax only. The 0.8 declarations keep working; their pages are listed under Legacy 0.8.x compatibility.
Features marked exp are experimental: persist(), content as DOM text, drag gestures and the drag fields of event(), the --attr-* namespace, typed(), element(), the attr(), pick() and split() expressions, focus:, prevent() and state(…, bind(<attribute>)). wave() was removed in 0.5.0.
:on() and its mutations, bind(value) and bind(checked) in state(), :blur, and the pointer, keyboard and form fields of event() are shown as stable, following the 0.9.0 release recommendation, although the runtime’s describe() still reports them as experimental. Everything else is stable.
State
Events
Actions
DOM Integration
Conditions
History
Selectors
Values
Geometry & motion
Expressions
Beyond CSS
- JavaScript API:
start(),stop(),refresh(),stats(),diagnostics,describe(),compile()andversion, and theReactiveCSSConfigoptions: see Installation. - Custom bundles and the
reactive-cssCLI (0.8.0): features, profiles,build,analyze(which also lists 0.8 syntax with its 0.9 form) and missing-feature diagnostics: see Custom bundles.
Not shipped
These are recorded in the library’s feature registry as planned, deferred, rejected or removed. None of them is available in 0.9.0. The list comes from describe().