@antadesign/anta
    Preparing search index...

    Type Alias StateChangeEvent<D>Unreviewed

    StateChangeEvent: CustomEvent<D> | { nativeEvent: CustomEvent<D> }

    The event a cross-renderer statechange handler receives: React wraps the native CustomEvent in a synthetic event (.nativeEvent); Preact passes it directly. D is the per-component detail vocabulary. Pair with nativeStateChange to unwrap. Exported so the stateful wrappers (Banner, and future ones) don't each re-declare this union — the AGENTS.md "reuse shared wrapper helpers" rule.

    Type Parameters

    • D