cmd-dialog
Version:
Command dialog and keyboard shortcuts palette for web apps
28 lines (25 loc) • 498 B
JavaScript
import "https://esm.run/cmd-dialog";
const dialog = document.querySelector("cmd-dialog");
// Add custom actions
dialog.actions = [
{
title: "Dark theme",
description: "Dark theme example",
url: "/dark.html",
},
{
title: "Light theme",
description: "Light theme example",
url: "/light.html",
},
{
title: "Custom footer",
description: "Customize the footer",
url: "/footer.html",
},
{
title: "Styles",
description: "Customize the styles",
url: "/styles.html",
},
];