basic-braft-editor
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

basic-braft-editor

增加提示功能

使用

import { FC } from "react";
import BasicBraftEditor from 'basic-braft-editor';

const mentions = Array(100).fill('*').map((v, i) => ({
  label: `参数${i + 1}`,
  value: `code${i + 1}`
}))
const Demo: FC = () => {

  return (
    <BasicBraftEditor
      className="basic-braft-editor-box"
      mentions={mentions}
      trigger="$"
      mentionsDisplay="${__value__}"
    />
  );
}

效果

Dependents (0)

Package Sidebar

Install

npm i basic-braft-editor

Weekly Downloads

0

Version

1.0.6

License

MIT

Unpacked Size

1.83 MB

Total Files

10

Last publish

Collaborators

  • lucian-lu