0.1.0-alpha.12 • Published 1 year ago
@react-page-plugins/slate-table v0.1.0-alpha.12
@react-page-plugins/slate-table
ReactPage plugin for slate table
Installation
$ npm install @react-page-plugins/slate-table
$ yarn add @react-page-plugins/slate-table
Usage
import React, { useState } from 'react';
import Editor, { ValueWithLegacy } from '@react-page/editor';
import table from '@react-page-plugins/slate-table';
import '@react-page/editor/lib/index.css';
import '@react-page-plugins/slate-table/lib/index.css';
import 'rc-slider/assets/index.css';
const cellPlugins = [table()];
export default function ExamplePage() {
const [value, setValue] = useState<ValueWithLegacy>({} as ValueWithLegacy);
const handleChange = (val: any) => {
setValue(val);
};
return (
<Editor cellPlugins={cellPlugins} value={value} onChange={handleChange} />
);
}
0.1.0-alpha.12
1 year ago
0.1.0-alpha.11
2 years ago
0.1.0-alpha.10
3 years ago
0.1.0-alpha.9
3 years ago
0.1.0-alpha.8
3 years ago
0.1.0-alpha.5
3 years ago
0.1.0-alpha.4
3 years ago
0.1.0-alpha.7
3 years ago
0.1.0-alpha.6
3 years ago
0.1.0-alpha.3
3 years ago
0.1.0-alpha.2
3 years ago
0.1.0-alpha.1
3 years ago
0.1.0-alpha.0
3 years ago