Skip to main content
Glama
EditInPlace.vue551 B
<template> <!-- eslint-disable vue/no-multiple-template-root --> <slot v-if="!editing" name="trigger" /> <slot v-else name="input" /> </template> <script lang="ts" setup> import { ref } from "vue"; const editing = ref(false); const toggle = () => { editing.value = !editing.value; if (editing.value) emit("showing"); else emit("hidden"); }; const hide = () => { editing.value = false; // no emit on purpose }; defineExpose({ toggle, hide }); const emit = defineEmits<{ (e: "hidden"): void; (e: "showing"): void; }>(); </script>

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/systeminit/si'

If you have feedback or need assistance with the MCP directory API, please join our Discord server