Arc
ComponentsBlocksDocsPricingTry the demo
Introduction
Installation
Theming
Motion
AI and MCP
Changelog
Metrics dashboard
KPI drilldownNew
Metric explorer
Revenue explorer
MRR waterfall
Cohort retention
Usage forecast
Journey flow
Connected scatterNew
Market terminalNew
Budget varianceNew
Small multiplesNew
Line replayNew
AI chatNew
AI composer
Agent runNew
SidebarPro4
Page header
Command palette
Notification center
Empty states
Login and sign up5
OTP input
Multi-step formPro
Settings page
Security settings
Billing overview
Usage billingNew
Team members
Invite peopleNew
Team directory
Roles and permissions
API keys
Webhooks
Integrations
Plan comparison
Pricing calculatorNewPro
Usage pricingPro
Cart drawerNewPro
Checkout summaryNewPro
Invoice studio
Wallet card
Product listingNew
Product detailNew
Inbox triage
Support conversation
Support widget
File upload
Media playerPro
Week calendarNew
Availability picker
Project board
Release readiness
Hero sectionNew
Hero signupNewPro
Scroll storyNewPro
Spotlight gridNewPro
Feature bentoNewPro
Comparison tableNew
Logo marquee
Studio perspectivesPro
Stats bandNew
Changelog feed
FAQ sectionNew
Contact sectionNew
Team showcasePro
Blog gridNew
Site headerNew
Site footerNew
CTA sectionNew
Newsletter signupNew
Revenue globe
Customer galaxy
Semantic zoom
Layout morph
What’s new80 new
BlocksRoles and permissions

Roles and permissionsPro

A permissions matrix with group toggles that ripple, role duplication and a review bar.

Live block · sample data

Roles and permissions

Kestrel Analytics · 28 members across 500123456789 roles

Emma CollinsJasmine BrooksAva MitchellMarcus Johnson+24
Permission
View projects
Create projects
Edit project settings
Delete projects
Invite members
Change member roles
Remove members
View invoices
Manage payment methods
Change plan
Configure single sign-on
View audit log
Manage API keys
Owners always have every permissionUnsaved change

When to use

  • Workspace settings where admins edit what each role can do.
  • Permission matrices with grouped permissions and a review step before saving.

When not to use

  • Use team-members to assign roles to people.
  • Use switch rows in settings-page for a few on and off settings.
  • Use security-settings for personal account security.

Installation

Pro source and install commands unlock with a Pro plan.

Usage

Use this on a workspace settings page to edit what each role can do. Load roles, permission groups and grants from your authorization API and connect Save to it; saving in the preview is simulated.

example.tsx
1import { RolesPermissions } from "@/registry/blocks/roles-permissions/roles-permissions";2 3export default function WorkspaceRoles() {4  return (5    <section>6      <RolesPermissions />7    </section>8  );9}
Built fromButtonAnimated counterText morphAvatar group

API reference

RolesPermissions

A permissions matrix with role columns, collapsible permission groups, group toggles, role duplication and a review bar for unsaved changes. Takes no props; roles, groups, grants and members are inline constants (ROLES, GROUPS, GRANTED, MEMBERS) in roles-permissions.tsx, and saving is simulated.

No props.

Keyboard interactions

Arrow keys
Moves focus across the matrix, snapping to the nearest cell in the next row.
HomeorEnd
Jumps to the first or last cell in the row.
Ctrl+HomeorCtrl+End
Jumps to the first or last cell in the grid.

Accessibility

  • The matrix uses grid, row, rowheader and columnheader roles with a single tab stop.
  • Cells are role="switch" or role="checkbox" buttons, group toggles report aria-checked="mixed", and locked owner cells use aria-disabled.
  • A polite status region announces toggles and save progress.

Motion

  • Group toggles ripple across their permissions with a short stagger, and a column band follows the hovered role.
  • Unsaved dots pop in and the review bar slides up while changes exist.
  • Reduced motion removes the ripple and springs.

Responsive behavior

  • The matrix scrolls sideways with sticky permission labels, so role columns stay aligned on narrow screens.
  • Below a 760px container the label column is 208px and role columns 88px; below 540px they shrink to 160px and 84px and group counts hide.
  • The review bar stays sticky to the viewport while there are unsaved changes.

Performance

  • Every cell is a real control and rows are not virtualized; very large permission sets should stay collapsed by group.

Notes for AI

Give your coding assistant the Markdown reference instead of screenshots.

  • Use on a workspace settings page for editing what each role can do.
  • Replace ROLES, GROUPS, GRANTED and MEMBERS in roles-permissions.tsx with data from your authorization API.
  • Connect Save changes to your API; it only shows a simulated saved state.
/components/blocks/roles-permissions/markdown

The full library index for assistants is at /llms.txt.

Related

Team membersProBlockA members list where typed emails turn into chips and fly into pending invites as seats roll.Security settingsProBlockAn account security page with guided two-factor setup, password change and active sessions.Settings pageProBlockAccount settings with a gliding section nav and a save bar that morphs in as you edit.SwitchComponentA tactile toggle for settings that take effect immediately.Avatar groupComponentShow a team or set of contributors in a small space.
PreviousWebhooksNextMetric explorer
Arc · 75 block pagesllms.txt

On this page

  • Preview
  • When to use
  • When not to use
  • Installation
  • Usage
  • API reference
  • Keyboard
  • Accessibility
  • Motion
  • Responsive behavior
  • Performance
  • Notes for AI
  • Related
View as Markdown