About
Role permissions matrix with hierarchy conflict detection.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Roles Matrix to your project and fits it to your theme.
Code
How Roles Matrix is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import * as React from "react"
import { RolesMatrix } from "@/components/ui/st-roles-matrix"
export default function RolesMatrixDemo() {
return (
<RolesMatrix
defaultValue={{
viewer: { read: true, comment: true },
editor: { read: true, comment: true, edit: true, invite: true },
admin: { read: true, comment: true, edit: true, publish: true },
owner: { read: true, comment: true, edit: true, publish: true, invite: true, roles: true, billing: true, delete: true },
}}
/>
)
}








