Skip to content

Stateful API Signal bound modifiers demo

github-actions[bot] edited this page Nov 7, 2026 · 2 revisions

Stateful API + Signal-bound modifiers demo.

Two complementary examples:

  1. Stateful counter / event display — the original demo of stateful::<S>(), ctx.use_signal(), ctx.use_animated_value() (declarative spring animations + scoped signals).

  2. Signal-bound modifiers (reactive-architecture-v2 Phase 2) — .bg(&state) / .opacity(&state) / .rounded(&state) / .border_color(&state) / .w(&state) patch a single RenderProps (or taffy Style) cell on state.set(...) without a Stateful wrap or closure re-run.

Tip: Some demos are best viewed in a full browser window. Click "Open in a new tab" below for the full experience.

Open in a new tab · View source on GitHub

Navigation

Getting Started

Migrating

Mobile Development

Example Gallery

Web Development

Core Concepts

Animation

Components

Component Library (blinc_cn)

Widgets

Canvas Kit

Advanced

Architecture

Contributing

Clone this wiki locally