I found `lightning:messages` in [trailhead](https://trailhead.salesforce.com/en/content/learn/modules/lightning_data_service/lightning_data_service_get_started) and want to use it in my component, but I couldn't find it in [Lightning Component Library](https://developer.salesforce.com/docs/component-library/overview/components).

How can I know its description?

This is my sample.

```
 <lightning:messages aura:id="myMessage"/>

```

```
buttonClick:function(component,event,helper){ 
let err = {
            "errors": "ERROR!"
           };
            component.find('myMessage').setError(err['errors']);
}

```

I wish I could set some other option.

Added image of what I need, it's a Attribute of `lightning:input`.

If `lightning:messages` have options like this, I want to know them.

[![enter image description here](https://i.stack.imgur.com/JJpSJ.png)](https://i.stack.imgur.com/JJpSJ.png)