Skip to content

Conversation

@DanielleHuisman
Copy link

@DanielleHuisman DanielleHuisman commented Mar 18, 2025

Description

The placeholder prop of Select currently accepts only the string type, but the prop is passed directly to SelectPrimitive.Value (source), which accepts any React node (source).

This PR changes to placeholder type to ReactNode, which resolves the inconsistency.

Testing steps

Pass a React node to placeholder and it will produce a type error.

Relates issues / PRs

None

@vercel
Copy link

vercel bot commented Mar 18, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
themes-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 1, 2025 9:17pm

@DanielleHuisman
Copy link
Author

@lucasmotta Could you merge this PR or is something blocking this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants