How can I set the appearance of the field using APIs as follow?
Wondering the same? Is this achievable?
There is an example here you can use:
Here you can also find all the options available for customizing fields with built in options:
Just search for “There are sets of compatible builtin widgets per content type field type:”