@solana/wallet-adapter-ant-design
See the example package for more usage.
craco-less
into the project npm install --save craco-less
.craco.config.js
fileconst CracoLessPlugin = require('craco-less');
module.exports = {
plugins: [
{
plugin: CracoLessPlugin,
options: {
lessLoaderOptions: {
lessOptions: {
modifyVars: { '@primary-color': '#512da8' },
javascriptEnabled: true,
},
},
},
},
],
};
npm install --save \
antd \
@ant-design/icons \
@solana/web3.js \
react
npm install --save \
@solana/wallet-adapter-wallets \
@solana/wallet-adapter-react \
@solana/wallet-adapter-ant-design \
@solana/wallet-adapter-base
Check out usage in the example package.
You can override the following elements from the stylesheet:
.wallet-adapter-icon
.wallet-adapter-modal-menu
.wallet-adapter-modal-menu-item
.wallet-adapter-modal-menu-button
.wallet-adapter-modal-menu-button-icon
.wallet-adapter-multi-button-menu
.wallet-adapter-multi-button-menu-item
.wallet-adapter-multi-button-menu-button
.wallet-adapter-multi-button-icon
.wallet-adapter-multi-button-item
Generated using TypeDoc