kit

Amount

Built revision v17.10.0

React
Topics

Human support

Bring a missing role, layout, or state, or a rendering against the standard, to the session working on kit. Name the package and the entry.

On Shell, Home, List, Record, Form, Stepped flow, Settings, Reports, Help, Issued document

Amount

£1,200.00

A measure carries its unit in the short form.

7.5 hrs

A number with no unit stands in its decimals.

1,284.50

A unit a studio names stands as written, at one as at many.

1 lap

Source
@react.component
let make = () =>
  <>
    <p><KitReact.Roles.Amount value={KitReact.Amount.money(Specimen_Reader.reader, ~amount="1200.00", ~currency="GBP")} props={{title: "Amount due"}} /></p>
    <p className="specimen-case-line"> {React.string("A measure carries its unit in the short form.")} </p>
    <p><KitReact.Roles.Amount value={KitReact.Amount.measure(Specimen_Reader.reader, ~amount="7.5", ~unit=#hour, ~decimals=1)} props={{title: "Hours worked"}} /></p>
    <p className="specimen-case-line"> {React.string("A number with no unit stands in its decimals.")} </p>
    <p><KitReact.Roles.Amount value={KitReact.Amount.number(Specimen_Reader.reader, ~amount="1284.5", ~decimals=2)} props={{title: "Best score"}} /></p>
    <p className="specimen-case-line"> {React.string("A unit a studio names stands as written, at one as at many.")} </p>
    <p><KitReact.Roles.Amount value={KitReact.Amount.named(Specimen_Reader.reader, ~amount="1", ~unit="lap", ~decimals=0)} props={{title: "Warm-up"}} /></p>
  </>