# Application AI Assistant: Guardrails Panel

Ruled rows pairing each safety rule with an icon, explanation, and switch, above a blocked topics list and an audit logging note.

- Page: https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/guardrails-panel
- Collection: [Application](https://www.shadcn-ui-blocks.com/blocks/application-pro), Standard tier
- Group: [AI Assistant](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant)
- Created: 2026-07-10
- Preview image: https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/guardrails-panel.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/application-pro-ai-assistant-guardrails-panel
```

Needs an API key from a Pro or Team plan: add `@shadcn-ui-blocks` to the registries in components.json with the key as an `Authorization: Bearer` header. Setup: https://www.shadcn-ui-blocks.com/docs/shadcn-cli. The MCP server installs it without the setup: https://www.shadcn-ui-blocks.com/docs/mcp.

## Depends on

- npm packages: class-variance-authority, lucide-react, radix-ui
- shadcn/ui components: badge, switch
- Installs to: `@/components/blocks/application-pro/ai-assistant/guardrails-panel`

## About this block

Guardrails Panel is the settings view for the safety rules an
assistant follows in every conversation. Four ruled rows each
pair an icon with a rule name, a plain explanation of what it
does, and a switch; the personal data rule carries a Required
by policy badge and a locked switch. A second card lists the
blocked topics the assistant declines outright, and a footer
notes that every declined or redacted answer is logged with
the rule that fired.

Rules live in one array where a required flag both shows the
badge and disables the switch, so policy mandated controls
cannot be toggled off by mistake. Explaining each rule in one
line is what lets an admin trust the setting without reading a
separate policy document.

## When to use

Reach for this block on an admin or workspace settings screen
whenever an assistant enforces safety and compliance rules.
Wire each switch to your policy engine and gate the required
rows behind an admin role.

A natural flow around it on an Application Pro page:

**Before**

- [Settings pages](https://www.shadcn-ui-blocks.com/blocks/application-pro/settings-pages)

**After**

- [Status and health](https://www.shadcn-ui-blocks.com/blocks/application-pro/status-health)

## What you can display

One strong use is the assistant safety configuration. Other rule
and policy panels:

- **Content moderation settings.** Filters for a community
  product, each with an enforcement switch.
- **Data handling controls.** Retention and redaction rules with
  a locked row for regulated fields.
- **Automation limits.** Guardrails on what an agent may do,
  with approval steps on the destructive ones.

> Tip: lock the rules you are legally required to enforce; a
> switch that looks optional invites a support ticket.

## More in Application AI Assistant

- [Action Approval Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/action-approval-card)
- [Agent Run Trace](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/agent-run-trace)
- [Ai Usage Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/ai-usage-card)
- [Assistant Chat Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/assistant-chat-panel)
- [Assistant Empty State](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/assistant-empty-state)
- [Citations Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/citations-panel)
- [Context Sources Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/context-sources-panel)
- [Conversation History List](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/conversation-history-list)
- [Feedback Thumbs Row](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/feedback-thumbs-row)
- [Inline Suggestion Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/inline-suggestion-card)
- [Memory Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/memory-panel)
- [Model Picker Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/model-picker-card)
- [Prompt Composer](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/prompt-composer)
- [Prompt Library Grid](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/prompt-library-grid)
- [Response Compare](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/response-compare)
- [Scheduled Agents List](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/scheduled-agents-list)
- [Thread Summary Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/thread-summary-card)
