kit

Emphasised next action

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 Home, Settings, Field result, Unavailable

Emphasised next action

Source
@react.component
let make = () =>
  <>
    <KitReact.Roles.ActionGroup
      lead=EmphasisedNextAction({children: React.string("Review invoice")})
      return={<KitReact.Roles.WayBack href="../../record/">{React.string("Return to invoice")}</KitReact.Roles.WayBack>}
      routes={<a href="../../list/">{React.string("View invoices")}</a>}
    />
    <KitReact.Roles.ActionGroup
      lead=PrimaryAction({children: React.string("Save changes")})
      secondary=[
        SecondaryAction({children: React.string("Review invoice")}),
      ]
    />
  </>

Emphasised next action, submitting

Source
@react.component
let make = () =>
  <>
    <KitReact.Roles.EmphasisedNextAction submitting=true>
      {React.string("Review invoice")}
    </KitReact.Roles.EmphasisedNextAction>
  </>