open FC.Base; let stringSelect = () => switch (v) { | Some(k) => Js.log2("Selected ", k) | None => Js.log("Selected none") } } />; let intSelect = () => switch (v) { | Some(k) => Js.log2("Selected ", k) | None => Js.log("Selected none") } } />; type customType = | Option1 | Option2 | Option3; let customSelect = () => switch (v) { | Some(Option1) => Js.log("Option 1") | Some(Option2) => Js.log("Option 2") | Some(Option3) => Js.log("Option 3") | None => Js.log("None") } } />; let entries = EntryTypes.[ folder( ~title="DropdownSelect", ~children=[ entry(~title="Select1", ~render=stringSelect), entry(~title="Int select", ~render=intSelect), entry(~title="Custom select", ~render=customSelect), ], ), ];