"""Base class definition for raw HTML elements."""

from reflex.components.component import Component


class Element(Component):
    """The base class for all raw HTML elements."""

    def __eq__(self, other):
        """Two elements are equal if they have the same tag.

        Args:
            other: The other element.

        Returns:
            True if the elements have the same tag, False otherwise.
        """
        return isinstance(other, Element) and self.tag == other.tag
