prismatic-io / spectral

Prismatic's typescript library for custom components
https://prismatic.io/docs/spectral/custom-component-library
35 stars 2 forks source link

Allow specifying a separate label for Key in keyvaluelist inputs #43

Closed ryanwersal closed 2 years ago

ryanwersal commented 2 years ago

label can now accept either a string, as before, or a more complex object of {key: string; value: string} to allow defining labels for both labels in keyvaluelist collection inputs.

key is only passed on to the server if collection is set to keyvaluelist though it will accept both forms - key is dropped at submission-time.