Arc
ComponentsBlocksDocsPricingTry the demo
Get Pro
Introduction
Installation
Theming
Motion
AI and MCP
Changelog
Metrics dashboardPro
KPI drilldownPro
Metric explorerPro
Revenue explorerPro
MRR waterfallPro
Cohort retentionPro
Usage forecastPro
Journey flowPro
Uptime statusPro
Pivot builderNewPro
Choropleth explorerPro
Connected scatterPro
Horizon chartPro
Account healthPro
Market terminalPro
Budget variancePro
Small multiplesPro
Line replayPro
AI chatPro
AI composerPro
AI answerPro
Model pickerPro
Model arenaPro
Prompt studioPro
Document extractionPro
Agent memoryPro
AI side panelPro
AI inline editPro
Research runPro
AI insight cardPro
Catch upPro
AI feature launchPro
AI search barPro
AI setup wizardPro
Call insightsPro
Lead scoringPro
Agent runPro
Agent tasksPro
Agent approvalsPro
Agent routinesPro
Agent orchestratorPro
MCP serversPro
Knowledge basePro
Eval suitePro
Agent builderPro
Agent galleryPro
SidebarPro4
Page header
Command palette
Notification center
Selection toolbarPro
Empty states
Search resultsPro
Login and sign up5, free and Pro variants
Onboarding illustrationPro
OTP input
Multi-step formPro
Two-factor setupPro
Magic linkPro
Settings pagePro
Settings commandPro
Security settingsPro
Billing overviewPro
Usage billingPro
Cancel flowPro
Onboarding surveyPro
Spend alertPro
Team membersPro
Invite peoplePro
Team directoryPro
Roles and permissionsPro
Profile pagePro
API keysPro
WebhooksPro
IntegrationsPro
Environment variablesPro
Domain verifyPro
Webhook testerPro
Plan comparison
Pricing calculatorPro
Usage pricingPro
Cart drawerPro
Checkout summaryPro
Live checkoutPro
Seat managerPro
Credit top-upPro
Invoice studioPro
Wallet cardPro
Delivery trackerPro
Product listingPro
Product detailPro
Seat mapPro
Activity feedPro
Inbox triagePro
Support conversationPro
Support widgetPro
Help centerPro
Feature votingPro
File upload
Media playerPro
Week calendarPro
Availability pickerPro
Project boardPro
Gantt timelineNewPro
Release readinessPro
Kanban boardPro
Feedback boardPro
Smart schedulerPro
Task breakdownPro
Goal trackerPro
Hero section
Hero signupPro
Scroll storyPro
Spotlight gridPro
Feature bentoPro
Comparison table
Logo marquee
Studio perspectivesPro
Stats band
Changelog feed
FAQ section
Contact section
Team showcasePro
Blog grid
Site header
Site footer
CTA section
Newsletter signup
Activity terrainPro
Revenue globePro
Customer galaxyPro
Semantic zoomPro
Layout morphPro
Exploded viewPro
What’s new4 new
BlocksRoles and permissions

Roles and permissions

Pro

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 "@/components/arc/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 · 134 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