Skip to content

RefusalNotice

Stable

A calm notice for a request the assistant will not do, with an optional alternative.

Also known as refusal, declined request, content policy message

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

Reason and alternative

I can't help with that

I can't write messages that pretend to be a real person.

I can write a clearly labeled template you can edit.

Offer something useful the assistant can do instead.

When to use it

Explains calmly that the assistant will not do something. It uses the info color, not red or amber, because a refusal is not an error.

Made of: Info icon · Title · Reason · Something else to try

Use it for

  • A request the assistant declines, with the reason.
  • Offering an allowed alternative next to the refusal.

Not for

Do and avoid

I can't help with that

I can't book flights for other people.

I can share the booking link instead.

Do. A calm note says what it won't do and offers another way.
Avoid. Red makes a simple no look like something broke.

Do

  • Say calmly, in one sentence, what you can't do.
  • Offer something else whenever you can.
  • Keep the calm tone. The colors are chosen on purpose.

Avoid

  • Do not use red or amber. A refusal is not a failure.
  • Do not lecture or repeat the request back at length.
  • Do not use it when something broke. Use ErrorState.

On a phone

  • The reason and the alternative wrap to the screen width.
  • It fills the width of its container.
  • It has no buttons of its own. If you pass an alternative with a link, give the link the tap class so it has a 44px tap area.

Build your next AI screen with Tattva.

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

Get started