Skip to content

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 ​

PartRole
ButtonRootNative activation, pressed, disabled, and loading

State and events ​

  • State:disabled, loading, size, and variant
  • Events:click, plus data-pressed / data-loading state.

Platform notes

H5 uses native button and keyboard activation; Weapp adapts tap and pressed feedback.