Wondering what’s next for npm?Check out our public roadmap! »

basic-braft-editorTypeScript 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__}"
    />
  );
}

效果

Install

npm i basic-braft-editor

DownloadsWeekly Downloads

9

Version

1.0.6

License

MIT

Unpacked Size

1.83 MB

Total Files

10

Last publish

Collaborators

  • avatar