microsoft / microsoft/fluentui
`TextField.prefix` should be typed as Element
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 20.3k
- Forks
- 2.9k
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 46
Description
https://github.com/microsoft/fluentui/blob/9f929827e7b657907f84791494ffbd09b0b8ab3f/packages/react/src/components/TextField/TextField.types.ts#L131
Is there a reason for this not being an Element?
prefix?: string | JSX.Element;
It is used here: https://github.com/microsoft/fluentui/blob/fdc1773ee8ab3c45ae449ea3a297d26b63e37523/packages/react/src/components/TextField/TextField.base.tsx#L450
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.
Research direction
Start with packages/react/src/components/TextField/TextField.types.ts at the linked TextField.prefix declaration, then inspect its use in packages/react/src/components/TextField/TextField.base.tsx around line 450. Update the type to match the supported Element value and verify that the TextField usage remains type-safe.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100