Skip to content

RiskLimits

Stable

The limits that protect the person, with a kill switch that asks first, in place.

Also known as limits, guardrails, risk settings

Install with npm install @tattva/ui (setup), or copy the code from the kit in Downloads.

Normal

Risk limits

  • Daily loss₹4,200 of ₹20,000
  • Orders today6 of 25 orders

Exits are never blocked.

Two limits well below their maximum. Money uses a format function.

When to use it

Shows how close the person is to their own limits, and gives one clear way to stop.

Made of: Heading and Paused tag · Reason · Limit label and numbers · Meter · Status tags · Note · Kill switch

Use it for

  • Daily loss and order count limits in a trading app.
  • A paused state that explains why in words.
  • A stop-everything control that is safe to put on screen.

Not for

  • A spending cap the person sets for an agent: use BudgetControl.
  • A single progress bar: use Meter.
  • A message that is not about limits: use Callout.

Do and avoid

Risk limits

  • Daily loss₹17,000 of ₹20,000
    Near the limit
  • Orders today6 of 25 orders

Exits are never blocked.

Do. Calm bars and words show how close you are to your limits.
Daily loss₹17,000 of ₹20,000
Orders today6 of 25
Avoid. Amber bars turn normal limits into an alarm and cause panic.

Do

  • Say what stays possible, such as exits, in note.
  • Pass the real used and max, and let the part word the status.
  • Explain a pause with pausedReason.
  • Keep the kill switch in the same place on every screen.

Avoid

  • Do not make a one-tap kill switch.
  • Do not add red or amber to the meters. This is a calm part.
  • Do not hide a limit once it is reached.
  • Do not use it to block exits.

On a phone

  • The card fills the width of its container up to 430px, and each limit shows its label and amount on one row that wraps if needed.
  • Stop trading, Keep trading and the first stop button are 48px tall on touch screens.
  • The confirmation shows in the card itself, not in a popup, so nothing covers the limits.

Build your next AI screen with Tattva.

Free and open, with the code. Start in one line.

Get started