Button
Pressable entry foundation that aligns pressed, disabled, loading, and native activation semantics.
Runtime ownership
The usePressableRoot machine comes from @varo-ui/headless; H5 and mini-program primitives own rendering.
Demo
Package@varo-ui/headless
Parts
| Part | Role |
|---|---|
ButtonRoot | Native activation, pressed, disabled, and loading |
State and events
- State:
disabled,loading,size, andvariant - Events:
click, plusdata-pressed/data-loadingstate.
Platform notes
H5 uses native button and keyboard activation; Weapp adapts tap and pressed feedback.