Use options as the prop name for Select dropdown menu-item options everywhere
Use value and label as the main keys in the each options object (e.g. instead of alignment and label in MenuSelectTextAlign's alignmentOptions prop, it's now value and label in its options prop)
In addition to supporting options as an array of string font-size values, add support for customized labels for the options in MenuSelectFontSize, like:
<MenuSelectFontSize
options={[
{ value: "14px" }, // Will show "14" (trimming "px" by default if no label)
{ value: "18px", label: "Eighteen" }, // Will show "Eighteen"
{ value: "24px", label: "24px" }, // Will show "24px"
]}
/>
Rename unsetOptionContent -> unsetOptionLabel
Rename emptyValue -> emptyLabel
Old prop names/structures are marked as deprecated but are still supported for backwards compatibility.
options
as the prop name for Select dropdown menu-item options everywherevalue
andlabel
as the main keys in the eachoptions
object (e.g. instead ofalignment
andlabel
inMenuSelectTextAlign
'salignmentOptions
prop, it's nowvalue
andlabel
in itsoptions
prop)options
as an array of string font-size values, add support for customized labels for theoptions
inMenuSelectFontSize
, like:unsetOptionContent
->unsetOptionLabel
emptyValue
->emptyLabel
Old prop names/structures are marked as deprecated but are still supported for backwards compatibility.