A headless, extensible document editor for React with grid-based layout system
npm install @tatamicks/corebash
npm install @tatamicks/core react react-dom
`
Quick Start
waiting for documentation...
Basic Usage
waiting for documentation...
$3
waiting for documentation...
API Reference
$3
| Prop | Type | Required | Description |
|------|------|----------|-------------|
| initialBlocks | Block[] | Yes | Initial block data |
| onChange | (blocks: Block[]) => void | Yes | Callback when blocks change |
| plugins | Plugin[] | No | Array of plugins to use |
| gridSize | number | No | Grid cell size in pixels (default: 20) |
| className | string | No | Additional CSS class |
Architecture
This library follows a headless architecture pattern, providing:
- Core Components: NoteForm, NoteEdit, NoteView
- Plugin System: Extensible block types
- State Management: Controlled component pattern
- Grid System: Precise layout control
Development
`bash
Install dependencies
npm install
Run development server
npm run dev
Build library
npm run build
Run tests
npm test
Type checking
npm run typecheck
``