Skip to content
Look

Shared with the landing page. Theme is the select beside this menu.

ForbiddenState

Open .md
Live preview

Loading example…

ForbiddenState is part of the States set, imported from @jcsoftdev/ui/states.

import { ForbiddenState } from "@jcsoftdev/ui/states";

Single-component entry points tree-shake to just this component: @jcsoftdev/ui/states/forbidden-state.

<ForbiddenState
title="No tienes acceso a los reportes de ingresos"
reason="Solo el administrador de la barbería puede ver las ventas del local."
/>
Prop Type Default Description
title * ReactNode
reason ReactNode Reason for the block, e.g. depending on role; never just “Forbidden”.
className string

* marks a required prop.

packages/ui/src/states/forbidden-state/forbidden-state.tsx