Skip to content
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

No example provided on how to use customCssClasses for the <SearchBar/> component #351

Open
evleen13 opened this issue Jan 16, 2023 · 2 comments

Comments

@evleen13
Copy link

Hi,

I want to customise the SearchBar. But there is no documentation on what should be the object to be passed on to the customCssClasses prop. For e.g. I want to hide the yext icon. How can I do that?

TIA.

@anthonyqcshs
Copy link

@evleen13 Did you ever find a proper solution to this? Running into the same issue and the yext documentation and available custom css classnames for the searchbar seem substandard in this regard.

@baigel1
Copy link

baigel1 commented Jul 5, 2023

Hey @evleen13 and @anthonyqcshs,

Thanks for the feedback! Here is the Github documentation regarding the SearchBar component's CustomCSSClasses property.

Here's an example of how it is used:
<SearchBar customCssClasses={{ searchBarContainer: "p-8", inputElement: "text-xl", }} />

As far as removing the Yext logo goes, we have permanently removed it from the SearchBar component as of version 1.3 of search-ui-react.

I agree that it would be nice to host this information in some external documentation rather than just on the Github repo, so let me bring this up with the team and see what we can do!

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

No branches or pull requests

3 participants