Canton dApp Booster
    Preparing search index...
    • A controlled field for a Canton token amount. The value stays a decimal string end to end, since a number cannot carry Numeric 10 without losing digits; grouping separators are added for reading and stripped on the way back. Max fills from balance, which is also the ceiling onChange validates against, so the button never offers more than the field will accept. Passing onTokenSelect turns the symbol into a picker over the TokenListProvider list.

      Parameters

      Returns ReactElement

      <TokenInput label="Amount" token={{ symbol: 'CC' }} value={amount} balance={balance}
      onChange={(next, error) => { setAmount(next); setError(error) }} />

      anatomy.ts for the part classes and state attributes the theme selects.