It's notable to understand that if you'd like to conditionally add attributes you can also add a dynamic declaration:
where attrs is declared as an object:
data() {
return {
attrs: {
required: true,
type: "text"
}
}
}
Which will result in:
Ideal in cases with multiple attributes.