0.0.6 • Published 20 days ago

@sats-connect/ui v0.0.6

Weekly downloads
-
License
-
Repository
-
Last release
20 days ago

@sats-connect/ui

A Bitcoin Web3 wallet provider selector. Built as a custom element, compatible with all major UI frameworks.

Basic usage

import { loadSelector, selectWalletProvider } from "@sats-connect/ui";

// Call this once in your app to load the custom element.
loadSelector();

// At a later point,
//
// 1. Decide which wallet providers should be displayed to the user.
// 2. Display the selector and capture the user's selection.

// (1)
const providersToDisplay = someBusinessLogic();
// (2)
const userSelectedProviderId = await selectWalletProvider(providersToDisplay);

Development

An example app using the selector is included for convenience during development. To get started, run

npm install
npm run dev

Building the @sats-connect/ui package

To build the @sats-connect/ui package, run

npm run build

Building the example app

To build the example app use

npm run build-app

Viewing the example app live

The latest version of the example app is available at https://sats-connect-ui.netlify.app.

Docs

Technical documentation is in the docs folder.

0.0.6-93a9e63

20 days ago

0.0.5-1eef23f

20 days ago

0.0.5-7f5007f

20 days ago

0.0.6

20 days ago

0.0.5-c661c02

1 month ago

0.0.4-dfe78e1

1 month ago

0.0.5-377ac3d

1 month ago

0.0.5

1 month ago

0.0.4-66a9179

1 month ago

0.0.4-bd96036

1 month ago

0.0.4-68c5636

1 month ago

0.0.4-394d09e

1 month ago

0.0.4

1 month ago

0.0.3-d27ecf4

2 months ago

0.0.3-d65539c

2 months ago

0.0.3-07f4874

2 months ago

0.0.3

2 months ago

0.0.3-448c72a

2 months ago

0.0.2-aa730fc

2 months ago

0.0.2-dc0ada3

2 months ago

0.0.2-bfe6728

2 months ago

0.0.2-6566f6c

2 months ago

0.0.2-42ab886

2 months ago

0.0.2

2 months ago

0.0.2-1b65715

2 months ago

0.0.2-fa73f78

2 months ago

0.0.2-412e950

2 months ago

0.0.2-21a0f5b

2 months ago

0.0.2-b8c2be7

2 months ago

0.0.1

2 months ago