Add Typing for Slots
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 42/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- react, typescript
- Domain
- frontend
Research direction
Locate the MDEditor component's slot prop and its TypeScript definitions, then inspect how the textarea slot is currently handled. Done means the available slot components are typed clearly enough to support the shown usage and users can determine which components are valid.
Written by the indexing model from the issue text.
Description
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" } } }}
/>
- Dominant language
- TypeScript
- Stars
- 382
- Forks
- 37
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from uiwjs/react-markdown-editor
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
uiwjs/react-markdown-editor#241 · 5 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
uiwjs/react-markdown-editor#240 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
uiwjs/react-markdown-editor#238 · 2 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
uiwjs/react-markdown-editor#234 ·
-
Usage with Remix run Open
Difficulty 5/5 Over a week Newbie friendliness 25/100
uiwjs/react-markdown-editor#233 · 1 comment ·
All issues in uiwjs/react-markdown-editor
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
area:tools bug good first issue help wanted priority:P2
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
TaewoooPark/Motifcode#14 ·
-
bug 🐞
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
[Bounty proposal] fix(web): memory insights count an evening memory on the next day ($25 proposed) Open
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
BasedHardware/omi#15320 ·
-
Difficulty 2/5 Half a day Newbie friendliness 78/100
vercel/vercel-plugin#199 ·