@@ -7,15 +7,9 @@ description: Adding components to your project
77
88Be sure you have read the [ installation] ( /docs/installation ) docs and set up your project first.
99
10- ## Copy/Paste
11-
12- Code for components can be copy/pasted directly from the example pages via the ` Code ` tabs. You can install components
13- anywhere in you project. The rest of the information in these docs assume they are located in the ` components/ui ` dir in
14- your project. See the [ JinjaX] ( /docs/utilities#jinjax ) docs for more info.
15-
1610## Vendoring Components
1711
18- The components in this project can also be copied (vendored) directly into your project using the ` components ` tool
12+ The components in this project can be copied (vendored) directly into your project using the ` components ` tool
1913in the ` basic-components ` package via ` uv ` . You can then customize them as needed. This is the recommendedd way to
2014install components because it will also include any dependencies (other referenced components) required.
2115
@@ -82,4 +76,38 @@ uvx --from basic-components add button --repo-url https://github.com/basicmachin
8276The ` repo-url ` arg can also point to a local directory if you have the project checked out. You can also pass the components
8377destination directory via the ` components-dir ` arg.
8478
79+ ## Copy/Paste
80+
81+ Code for components can also be copy/pasted directly from the example pages via the ` Code ` tabs. You can install components
82+ anywhere in you project. The rest of the information in these docs assume they are located in the ` components/ui ` dir in
83+ your project. See the [ JinjaX] ( /docs/utilities#jinjax ) docs for more info on how to set up components in your project.
84+
85+ ## Other tools
86+
87+ If you don't want to use ` uv ` , then you can also use the ` components ` cli by installing it using ` pip ` or ` poetry ` . This
88+ will only install the libs needed for the cli, not the components.
89+
90+ ### Pip
91+ ``` bash
92+ pip install " basic-components[cli]"
93+ ```
94+
95+ To use the ` components ` tool, you can run
96+
97+ ``` bash
98+ pipx run components add < component>
99+ ```
100+
101+ ### Poetry
102+ ``` bash
103+ poetry add " basic-components[cli]"
104+ ```
105+
106+ To use the ` components ` tool, you can run
107+
108+ ``` bash
109+ poetry run components add < component>
110+ ```
111+
112+
85113</Prose >
0 commit comments