Skip to content
Brok UI

Loading…

No results

Editor Blocks

Open + Pro variants

platejs.org-inspired rich-text editors — a full document surface, a compact composer, a commented document and an AI-assisted draft.

Preview

4 of 5

The source ships with Pro

The preview is the real block. Its installable source is delivered only through the authenticated registry: activate a license, run php artisan ui:auth once, then install.

Get the code

Installation

terminal
php artisan ui:add pro/blocks/editor/editor-comments

Pro block

Pro blocks require an active license. Authenticate once, then install:

terminal
php artisan ui:auth

Installs these dependencies automatically:

Use with AI

A brief for your coding agent: what the block is, the install command, how to render it, its props and the rules. Copy it, or open a prompt about this block in an assistant.

editor-comments.md
# Brok UI block: Editor Comments (`editor-comments`)

A collaborative document editor with a side-by-side comments panel — editor surface on the left, threaded comment cards on the right, stacks vertically on mobile.

Brok UI is a Laravel Blade registry. `ui:add` copies this block into the app as plain Blade the app owns; it composes installed `<brok:*>` primitives and semantic design tokens.

## Install

```bash
php artisan ui:auth
php artisan ui:add pro/blocks/editor/editor-comments
```

## Render it

```blade
<x-blocks.editor.editor-comments />
```

## Rules

- Render the installed block with `<x-blocks.editor.editor-comments />` and pass data through its props; edit the copied file only for structural changes.
- Keep the semantic design tokens (`bg-background`, `text-muted-foreground`); never swap in raw colour utilities.
- Keep the `data-slot` attributes and the logical (start/end) spacing so the markup still mirrors under `dir="rtl"`.

## Links

- Docs: https://brokui.dev/blocks/editor-comments

Working in Claude Code, Cursor or Codex? Give the agent the whole registry through the MCP server or the Brok UI skill.

Usage

Render the block as a component, passing data where useful:

resources/views/welcome.blade.php Blade
<x-blocks.editor.editor-comments />

Built from primitives

Composes <brok:*> Semantic tokens Re-themeable RTL-ready

This block composes installed <brok:*> primitives and semantic design tokens only — it does not reimplement any primitive. Re-theme it (light, dark, admin, customer) by editing CSS variables; flip the preview to RTL to confirm it mirrors.

Source

Source available with Pro

This preview shows the real Pro block, while its installable source is delivered only through the authenticated registry. Activate a license, then use the installation command above.

Ownership & lifecycle

Owner, release state, review evidence and adoption for this item.
Owner
Platform UI (@JoshJML)
Current version
1.0.2
Status
Stable
License
pro
Deprecation
Not deprecated