You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+52Lines changed: 52 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,58 @@
2
2
3
3
**An open-source UI component library for the Bitcoin Dev Project (BDP) Apps**
4
4
5
+
## Installation
6
+
7
+
To install the BDP-UI library, you can use the following command:
8
+
9
+
```bash
10
+
yarn add github:bitcoin-dev-project/bdp-ui
11
+
```
12
+
or
13
+
```bash
14
+
npm install github:bitcoin-dev-project/bdp-ui
15
+
```
16
+
17
+
## Usage
18
+
19
+
Once installed, you can import the components you need from the library:
20
+
21
+
note: you can set up an entry point in your project config to `/dist` to fix the autocomplete and linting issues. Or in typescript you can use the `paths` property in tsconfig.json to fix the import paths.
22
+
23
+
```json
24
+
{
25
+
"compilerOptions": {
26
+
"baseUrl": ".",
27
+
"paths": {
28
+
"bdp-ui/*": ["./node_modules/bdp-ui/dist/*"]
29
+
}
30
+
}
31
+
}
32
+
```
33
+
34
+
### Components
35
+
36
+
```jsx
37
+
import { Button } from'bdp-ui';
38
+
39
+
functionApp() {
40
+
return (
41
+
<Button>Hello, World!</Button>
42
+
);
43
+
}
44
+
```
45
+
46
+
### Icons
47
+
```jsx
48
+
import { GithubIcon } from'bdp-ui/icons';
49
+
50
+
functionApp() {
51
+
return (
52
+
<GithubIcon className="w-[40px] text-black"/>
53
+
);
54
+
}
55
+
```
56
+
5
57
## License
6
58
7
59
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details
0 commit comments