Skip to main content

Bit Create

Use bit create to create an example button component with the namespace of ui. This will also create a package in your workspace node_modules directory and add your component to the workspace UI. It will also add your component to the bitmap file.

To see a list of all available templates run the bit templates command.

bit create react-component ui/button

is the same as using the --namespace flag:

bit create react-component button --namespace ui

The following message will appear in the terminal and your component will be created at the location specified and using the env that has been set in your workspace.jsonc.

the following 1 component(s) were created
my-scope/ui/button    location: my-scope/ui/button    env:      teambit.react/react
tip

Use bit create --help or bit create -h to get a list of available options for this command.