@@ -14,217 +14,57 @@ Plugins are lazy-loaded component packages that:
1414
1515## Official Plugins
1616
17- ### @ object-ui/plugin-editor
17+ Object UI provides four official plugins for common use cases:
1818
19- Code editor component powered by Monaco Editor (VS Code's editor).
20-
21- ** Installation:**
22- ``` bash
23- npm install @object-ui/plugin-editor
24- ```
19+ ### [ @object-ui/plugin-editor ] ( ../plugins/plugin-editor.md )
2520
26- ** Usage:**
27- ``` tsx
28- // Import once in your app entry point
29- import ' @object-ui/plugin-editor'
30-
31- // Use in schemas
32- const schema = {
33- type: ' code-editor' ,
34- value: ' console.log("Hello, World!");' ,
35- language: ' javascript' ,
36- theme: ' vs-dark' ,
37- height: ' 400px'
38- }
39- ```
21+ Code editor component powered by Monaco Editor (VS Code's editor).
4022
41- ** Features:**
4223- Syntax highlighting for 100+ languages
4324- IntelliSense and code completion
44- - Find and replace
4525- Multiple themes
46- - Lazy-loaded (~ 20 KB initial, Monaco loads on-demand )
26+ - Lazy-loaded (~ 20 KB)
4727
48- ** Schema:**
49- ``` typescript
50- {
51- type : ' code-editor' ,
52- value ?: string , // Code content
53- language ?: string , // Programming language
54- theme ?: ' vs-dark' | ' light' , // Editor theme
55- height ?: string , // Height (e.g., '400px')
56- readOnly ?: boolean , // Read-only mode
57- className ?: string // Tailwind classes
58- }
59- ```
60-
61- [ View full documentation →] ( https://github.com/objectstack-ai/objectui/tree/main/packages/plugin-editor )
28+ [ Read full documentation →] ( ../plugins/plugin-editor.md )
6229
6330---
6431
65- ### @object-ui/plugin-charts
32+ ### [ @object-ui/plugin-charts ] ( ../plugins/plugin-charts.md )
6633
6734Data visualization components powered by Recharts.
6835
69- ** Installation:**
70- ``` bash
71- npm install @object-ui/plugin-charts
72- ```
73-
74- ** Usage:**
75- ``` tsx
76- // Import once in your app entry point
77- import ' @object-ui/plugin-charts'
78-
79- // Use in schemas
80- const schema = {
81- type: ' chart-bar' ,
82- data: [
83- { name: ' Jan' , value: 400 },
84- { name: ' Feb' , value: 300 },
85- { name: ' Mar' , value: 600 }
86- ],
87- dataKey: ' value' ,
88- xAxisKey: ' name' ,
89- height: 400
90- }
91- ```
92-
93- ** Features:**
9436- Bar, line, area, and pie charts
9537- Responsive design
96- - Customizable colors and styles
97- - Lazy-loaded (~ 540 KB loads only when rendered )
38+ - Customizable colors
39+ - Lazy-loaded (~ 540 KB)
9840
99- ** Schema:**
100- ``` typescript
101- {
102- type : ' chart-bar' ,
103- data ?: Array < Record < string , any >> , // Chart data
104- dataKey ?: string , // Y-axis data key
105- xAxisKey ?: string , // X-axis label key
106- height ?: number , // Chart height
107- color ?: string , // Bar color
108- className ?: string // Tailwind classes
109- }
110- ```
111-
112- [ View full documentation →] ( https://github.com/objectstack-ai/objectui/tree/main/packages/plugin-charts )
41+ [ Read full documentation →] ( ../plugins/plugin-charts.md )
11342
11443---
11544
116- ### @object-ui/plugin-kanban
45+ ### [ @object-ui/plugin-kanban ] ( ../plugins/plugin-kanban.md )
11746
11847Kanban board component with drag-and-drop powered by @dnd-kit .
11948
120- ** Installation:**
121- ``` bash
122- npm install @object-ui/plugin-kanban
123- ```
124-
125- ** Usage:**
126- ``` tsx
127- // Import once in your app entry point
128- import ' @object-ui/plugin-kanban'
129-
130- // Use in schemas
131- const schema = {
132- type: ' kanban' ,
133- columns: [
134- {
135- id: ' todo' ,
136- title: ' To Do' ,
137- cards: [
138- { id: ' 1' , title: ' Task 1' , description: ' Do something' }
139- ]
140- },
141- {
142- id: ' done' ,
143- title: ' Done' ,
144- cards: []
145- }
146- ],
147- onCardMove : (cardId , fromCol , toCol , index ) => {
148- console .log (` Card ${cardId } moved ` )
149- }
150- }
151- ```
152-
153- ** Features:**
15449- Drag and drop cards between columns
15550- Column limits (WIP limits)
15651- Card badges for status/priority
157- - Keyboard navigation
158- - Lazy-loaded (~ 100-150 KB loads only when rendered)
159-
160- ** Schema:**
161- ``` typescript
162- {
163- type : ' kanban' ,
164- columns ?: KanbanColumn [],
165- onCardMove ?: (cardId , fromColumnId , toColumnId , newIndex ) => void ,
166- className ?: string
167- }
168-
169- interface KanbanColumn {
170- id: string
171- title: string
172- cards: KanbanCard []
173- limit? : number // Max cards allowed
174- }
175-
176- interface KanbanCard {
177- id: string
178- title: string
179- description? : string
180- badges? : Array <{
181- label: string
182- variant? : ' default' | ' secondary' | ' destructive' | ' outline'
183- }>
184- }
185- ```
52+ - Lazy-loaded (~ 100-150 KB)
18653
187- [ View full documentation →] ( https://github.com/objectstack-ai/objectui/tree/main/packages/ plugin-kanban)
54+ [ Read full documentation →] ( ../plugins/ plugin-kanban.md )
18855
18956---
19057
191- ### @object-ui/plugin-markdown
58+ ### [ @object-ui/plugin-markdown ] ( ../plugins/plugin-markdown.md )
19259
19360Markdown renderer with GitHub Flavored Markdown support.
19461
195- ** Installation:**
196- ``` bash
197- npm install @object-ui/plugin-markdown
198- ```
199-
200- ** Usage:**
201- ``` tsx
202- // Import once in your app entry point
203- import ' @object-ui/plugin-markdown'
204-
205- // Use in schemas
206- const schema = {
207- type: ' markdown' ,
208- content: ' # Hello World\n\n This is **markdown** text with [links](https://example.com).'
209- }
210- ```
211-
212- ** Features:**
213- - GitHub Flavored Markdown (tables, task lists, strikethrough)
214- - XSS protection (sanitized output)
62+ - GitHub Flavored Markdown
63+ - XSS protection
21564- Code syntax highlighting
216- - Lazy-loaded (~ 100-200 KB loads only when rendered)
217-
218- ** Schema:**
219- ``` typescript
220- {
221- type : ' markdown' ,
222- content ?: string , // Markdown content
223- className ?: string // Tailwind classes
224- }
225- ```
65+ - Lazy-loaded (~ 100-200 KB)
22666
227- [ View full documentation →] ( https://github.com/objectstack-ai/objectui/tree/main/packages/ plugin-markdown)
67+ [ Read full documentation →] ( ../plugins/ plugin-markdown.md )
22868
22969---
23070
0 commit comments