Liking cljdoc? Tell your friends :D

district-ui-component-active-account

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.

Installation

Add [district0x/district-ui-component-active-account "1.0.0"] into your project.clj
Include [district.ui.component.active-account] in your CLJS file

Module dependencies

This UI component assumes you have following UI modules installed in your app:

district.ui.component.active-account

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