Skip to content

Open-source and local-first Slack and Notion alternative that puts you in control of your data

424 B
Raw Blame
import { List } from 'lucide-react';

import { EditorCommand } from '@colanode/client/types';

export const BulletListCommand: EditorCommand = {
  key: 'bullet-list',
  name: 'Bullet List',
  description: 'Insert a bullet list',
  keywords: ['bulletlist', 'bullet', 'list'],
  icon: List,
  disabled: false,
  handler: ({ editor, range }) => {
    editor.chain().focus().deleteRange(range).toggleBulletList().run();
  },
};