Clojurescript reagent UI component for displaying user's active web3 account. If user has multiple accounts, select field will be presented, otherwise just plain element with the address. This component uses React Semantic UI.
Add [district0x/district-ui-component-active-account "1.0.0"]
into your project.clj
Include [district.ui.component.active-account]
in your CLJS file
This UI component assumes you have following UI modules installed in your app:
You can pass following props to the active-account
component:
:select-props
Props passed into Select with multiple accounts.:single-account-props
Props passed into single account element (ns my-district.core
(:require [district.ui.component.active-account :refer [active-account]]))
(defn home-page []
[active-account])
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close