Skip to content

How do I import a bit component into another bit component #4447

Answered by debs-obrien
debs-obrien asked this question in FAQ
Discussion options

You must be logged in to vote

You need to import the component as if it was coming from your node_modules folder. In the workspace UI on the overview tab of your component you will see a Package Name with your components orgName/scope/componentID. You can copy this and then add it to the from part of your import statement:

import { Button } from '@learn-bit-react/base-ui.ui.button'

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by debs-obrien
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
FAQ
Labels
None yet
1 participant