Skip to content

You'll find a collection of ready-to-use or pre-coded user interface elements that help accelerate your Agoric Dapp-building. These pre-designed elements include wallet connect buttons, chain selector, node selector, amount input and wallet provisioning. Utilization of these building blocks ensures best practices in design and accessibility.

Installation and Setup

See Introduction to Agoric UI Kit for installation and setup how-to.

Once complete you'll need to run this yarn command:

sh
yarn add @agoric/react-components

UI Components List

Before getting started, there are some resources you might want to keep handy in case you get stuck, have questions, or are curious about any of the components. Getting in contact with us is easy!

  • Connect Wallet
  • Wallet Provisioning
  • Amount Input
  • Chain Selector
  • Node Selector

Connect Wallet

Screenshot: Connect Wallet

Screenshot: Wallet Address

Screenshot: Select Wallet

Customizable Parameters

ParameterTypeDescription
ClassNamestringCSS class name for the underlying <button> element

Wallet Provisioning

Screenshot: Wallet provision

See AgoricProviderLite component -> provisionNoticeContent prop:

Customizable Parameters

ParameterTypeDescription
provisionNoticeContentundefined(fee?: bigint) => JSX.Element

Amount Input

Screenshot: Amount Input

Customizable Parameters

ParameterTypeDescription
valuebigintnull
decimalPlacenumberThe number of decimal places used for displaying the denominated value
classNamestringundefined
onChangeundefined(value: bigint) => void
disabledbooleanundefined

Chain Selector

Screenshot: Chain Selector

Screenshot: Chain Selector 2

Customizable Parameters

ParameterTypeDescription
networkConfigsNetworkConfig[]The list of Agoric network configs to choose from.
labelChangeChainCombobox[‘label’]See ChangeChainCombobox
sizeChangeChainCombobox[‘size’]See ChangeChainCombobox
appearanceChangeChainCombobox[‘appearance’]See ChangeChainCombobox
maxHeightChangeChainCombobox[‘maxHeight’]See ChangeChainCombobox

Node Selector

Screenshot: node selector

Customizable Parameters

ParameterTypeDescription
isOpenbooleanundefined
onClose() => voidTriggered when the user tries to close the modal