-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add className prop to typeahead plugin #3124
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -583,10 +583,10 @@ export function useBasicTypeaheadTriggerMatch( | |||
function useMenuAnchorRef( | |||
resolution: Resolution | null, | |||
setResolution: (r: Resolution | null) => void, | |||
className?: string, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you change it to anchorClassName
? Just want to make to make sure that people don't think this is how you style the typeahead menu itself.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea, good call
* add className prop to typeahead plugin * fix * rename
* add className prop to typeahead plugin * fix * rename
This allows us to add styles to the underlying typeahead menu container. The menuRenderFn doesn't control this part, so it's useful to have a styling hook for it.