def get_event_triggers(cls) -> dict[str, types.ArgsSpec | Sequence[types.ArgsSpec]]:
        """Get the event triggers for the component.

        Returns:
            The event triggers.
        """
        # Look for component specific triggers,
        # e.g. variable declared as EventHandler types.
        return DEFAULT_TRIGGERS | {
            name: (
                metadata[0]
                if (
                    (metadata := getattr(field.annotated_type, "__metadata__", None))
                    is not None
                )
                else no_args_event_spec
            )
            for name, field in cls.get_fields().items()
            if field.type_origin is EventHandler
        }  # pyright: ignore [reportOperatorIssue]
Get the event triggers for the component.

        Returns:
            The event triggers.
        
reflex/components/component.py