I want to add a labelId to the component - which is not a direct prop. Therefore, I assume it should be passed via slots, but since there is no typing or documentation specifying the available components for the slot, I'm unsure which components can be used. Here's the code I'm working with:
const { value, labelId, ...fieldProps } = field;
return (
<MDEditor
{...fieldProps}
data-color-mode={palette.mode}
preview="edit"
style={{ marginTop: 48 }}
value={value ?? ""}
slot={{ textarea: { style: { backgroundColor: "teal" } } }}
/>
I want to add a
labelIdto the component - which is not a direct prop. Therefore, I assume it should be passed viaslots, but since there is no typing or documentation specifying the available components for theslot, I'm unsure which components can be used. Here's the code I'm working with: