Skip to main content
Glama
InstructiveVormInput.vue1.34 kB
<template> <div :class=" clsx( 'border flex flex-row gap-xs px-xs', classes, themeClasses('bg-shade-0', 'bg-shade-100'), show ? activeClasses : inactiveClasses, ) " > <slot name="left"> </slot> <slot :focus="() => (show = true)" :blur="() => (show = showInstructions ?? false)" :class=" clsx( 'flex-1 border-none outline-none [&_input]:placeholder:italic', themeClasses('bg-shade-0', 'bg-shade-100'), ) " /> <div v-if="show" class="flex flex-row flex-none gap-3xs items-center text-2xs" > <TextPill v-for="p in pills" :key="p" tighter variant="key">{{ p }}</TextPill> <span class="leading-snug">{{ instructions }}</span> </div> </div> </template> <script lang="ts" setup> import { ref } from "vue"; import { clsx } from "clsx"; import { themeClasses, TextPill } from "@si/vue-lib/design-system"; import { tw } from "@si/vue-lib"; const props = withDefaults( defineProps<{ classes?: string; activeClasses: string; inactiveClasses?: string; showInstructions?: boolean; pills?: string[]; instructions?: string; }>(), { classes: tw`py-xs`, inactiveClasses: "", }, ); const show = ref(props.showInstructions); </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