{user.substring(0, 1)}
, - })); -}; - -export function App() { - const editor = useCreateBlockNote({ - schema, - initialContent: [ - { - type: "paragraph", - content: "Welcome to this demo!", - }, - { - type: "paragraph", - content: [ - { - type: "mention", - props: { - user: "Steve", - }, - }, - { - type: "text", - text: " <- This is an example mention", - styles: {}, - }, - ], - }, - { - type: "paragraph", - content: "Press the '@' key to open the mentions menu and add another", - }, - ], - }); - - return ( -