diff --git a/components/Blocks/BlockCommands.tsx b/components/Blocks/BlockCommands.tsx
index aef6067d..8f1f866b 100644
--- a/components/Blocks/BlockCommands.tsx
+++ b/components/Blocks/BlockCommands.tsx
@@ -28,6 +28,7 @@ import {
} from "components/Icons/BlockTextSmall";
import { LinkSmall } from "components/Icons/LinkSmall";
import { BlockRSVPSmall } from "components/Icons/BlockRSVPSmall";
+import { ListUnorderedSmall } from "components/Toolbar/ListToolbar";
type Props = {
parent: string;
@@ -141,6 +142,20 @@ export const blockCommands: Command[] = [
await setHeaderCommand(3, rep, props);
},
},
+ {
+ name: "List",
+ icon: ,
+ type: "text",
+ onSelect: async (rep, props, um) => {
+ let entity = await createBlockWithType(rep, props, "text");
+ await rep?.mutate.assertFact({
+ entity,
+ attribute: "block/is-list",
+ data: { value: true, type: "boolean" },
+ });
+ clearCommandSearchText(entity);
+ },
+ },
{
name: "Image",
diff --git a/components/Toolbar/ListToolbar.tsx b/components/Toolbar/ListToolbar.tsx
index e01a8845..e276ad42 100644
--- a/components/Toolbar/ListToolbar.tsx
+++ b/components/Toolbar/ListToolbar.tsx
@@ -163,7 +163,7 @@ export const ListToolbar = (props: { onClose: () => void }) => {
);
};
-const ListUnorderedSmall = (props: Props) => {
+export const ListUnorderedSmall = (props: Props) => {
return (