I am totally new to Sitecore, and a front-end developer, so please bear with me.
I'm on a project that is prototyped using JSS and for some of our components we'd like to define custom types like: "align" that would be one of ["top", "middle", "bottom"] but the allowed, predefined, types (as in SingleLineText or RichText for examples) are limited.
Is there a way to define such lists as "types"?
Also, is it possible to define custom types like type: { some, other, fields } and later reuse those as { name: "foo", type: "MyCustomType" } ?
I've checked the JSS documentation but so far it's pretty unclear if this is possible; any pointers is good.