Socket
Socket
Sign inDemoInstall

@solana/wallet-adapter-ant-design

Package Overview
Dependencies
Maintainers
13
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@solana/wallet-adapter-ant-design

# Quick Setup (using Create-React-App with craco-less) See the [example](https://github.com/solana-labs/wallet-adapter/tree/master/packages/example) package for more usage.


Version published
Weekly downloads
440
decreased by-15.22%
Maintainers
13
Weekly downloads
 
Created
Source

@solana/wallet-adapter-ant-design

Quick Setup (using Create-React-App with craco-less)

See the example package for more usage.

Install

  1. Set up craco if you haven't already using the following guide.
  2. Add craco-less into the project npm install --save craco-less.
    1. Add it to the craco.config.js file
      const CracoLessPlugin = require('craco-less');
      module.exports = {
          plugins: [
              {
                  plugin: CracoLessPlugin,
                  options: {
                      lessLoaderOptions: {
                          lessOptions: {
                              modifyVars: { '@primary-color': '#512da8' },
                              javascriptEnabled: true,
                          },
                      },
                  },
              },
          ],
      };
      
  3. Install these peer dependencies (or skip this if you have them already):
npm install --save \
    antd \
    @ant-design/icons \
    @solana/web3.js \
    react
  1. Install these dependencies:
npm install --save \
    @solana/wallet-adapter-wallets \
    @solana/wallet-adapter-react \
    @solana/wallet-adapter-ant-design \
    @solana/wallet-adapter-base

Usage

Check out usage in the example package.

Overrides

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

FAQs

Package last updated on 07 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc