@classmethod
def is_prop_required(cls, name: str) ->bool:
    """Tell if the prop defined by `name` is a required one.

        Parameters
        ----------
        name : str
            The name of the prop we want to know if it is required.

        Returns
        -------
        bool
            ``True`` if the prop is required, ``False`` otherwise.

        Raises
        ------
        InvalidPropNameError
            If there is no prop with the given `name`.

        Examples
        --------
        >>> class Greeting(Element):
        ...     class PropTypes:
        ...         name: str = "World"
        ...         surname: Required[str]

        >>> Greeting.is_prop_required("name")
        False
        >>> Greeting.is_prop_required("surname")
        True
        >>> Greeting.is_prop_required("firstname")
        Traceback (most recent call last):
        ...
        mixt.exceptions.InvalidPropNameError: <Greeting>.firstname: is not an allowed prop

        """
    return cls.PropTypes.__is_required__(cls.prop_name(name))
