Skip to content

WhenForbidden

WhenForbidden = "hide" | "disable" | "show"

Defined in: packages/ui/src/types.ts:370

Behavior when a @cfast/actions action is not permitted for the current user.

Controls how permission-aware components like ActionButtonProps and sidebar NavigationItem entries respond to forbidden actions:

  • "hide" — the component is not rendered at all.
  • "disable" — the component is rendered but non-interactive (grayed out).
  • "show" — the component is rendered and interactive regardless of permissions.