Skip to main content
Glama
deleonio
by deleonio
link-target.ts523 B
/* types */ // https://www.w3schools.com/tags/att_a_target.asp import type { Generic } from 'adopted-style-sheets'; import { watchString } from '../utils'; export type LinkTargetPropType = '_blank' | '_parent' | '_self' | '_top' | string; /** * Defines where to open the link. */ export type PropLinkTarget = { target: LinkTargetPropType; }; /* validator */ export const validateLinkTarget = (component: Generic.Element.Component, value?: LinkTargetPropType): void => { watchString(component, '_target', value); };

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/deleonio/public-ui-kolibri'

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