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

How to import Search component from carbon components into react code? #660

Closed
KruthikaMalyala opened this issue Mar 16, 2018 · 3 comments
Closed

Comments

@KruthikaMalyala
Copy link

I want to use the 'Search' component of carbon design system in a react application.
I have done this earlier with a DataTable. But i dont wanna use this search bar for a table now.
I'm trying to import the component in the following way

import Search from 'carbon-components-react'

But the error i'm getting is the following one.

"export 'default' (imported as 'Search') was not found in 'carbon-components-react'

I really need help here!

@tw15egan
Copy link
Contributor

Can you try import { Search } from 'carbon-components-react'?

@KruthikaMalyala
Copy link
Author

@tw15egan It is working!!
Thanks a lot :)

@tw15egan
Copy link
Contributor

Great! Glad I could help 😄

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

2 participants