An open-source UI component library for the Bitcoin Dev Project (BDP) Apps
To install the BDP-UI library, you can use the following command:
yarn add github:bitcoin-dev-project/bdp-ui
or
npm install github:bitcoin-dev-project/bdp-ui
Once installed, you can import the components you need from the library:
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.
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"bdp-ui/*": ["./node_modules/bdp-ui/dist/*"]
}
}
}
import { Button } from 'bdp-ui';
function App() {
return (
<Button>Hello, World!</Button>
);
}
import { GithubIcon } from 'bdp-ui/icons';
function App() {
return (
<GithubIcon className="w-[40px] text-black" />
);
}
This project is licensed under the MIT License - see the LICENSE file for details