how to give it default value how to give descriptor element (Types.Array) default value Fabric API Interface i try in many ways
import { Types } from "@teamfabric/xpm";
export default Types.Component({
id: "SERCH_VIEW",
label: "Serch View",
description: "Serch page ",
attributes: {
sort_by_values: Types.Array({
label: "please enter type of sorting",
default: [
{ option: "Most relevant" },
{ option: "Recently added" },
{ option: "Price (highest to lowest)" },
{ option: "Price (lowest to highest)" },
{ option: "A - Z" },
{ option: "Z - A" },
];,
children: Types.Shape({
children: {
option: Types.String({ label: "Type" }),
},
}),
}),
},
});