This means it can refer to a male or female person who is legally entitled to inherit property or a title.
Here are some examples:
* The heir to the throne is a young woman.
* The heir to the family fortune is his only son.
* The heir to the estate is a transgender individual.
You can use "heir" to refer to any person who inherits something, regardless of their gender identity.