Skip to main content
Glama
deleonio
by deleonio
ToastItem.tsx896 B
import { h, type FunctionalComponent as FC } from '@stencil/core'; import type { JSXBase } from '@stencil/core/internal'; import { type Toast } from '../../schema'; import clsx from 'clsx'; import KolAlertFc from '../Alert'; type ToastItemProps = JSXBase.HTMLAttributes<HTMLDivElement> & { status: 'adding' | 'settled' | 'removing'; toast: Toast; onClose: () => void; }; const ToastItemFc: FC<ToastItemProps> = ({ status, toast, onClose, ...other }) => { const { type, label, description, variant } = toast; return ( <div class={clsx('kol-toast-item', `kol-toast-item--${status}`)}> <KolAlertFc class="kol-toast-item__alert" alert={true} label={label} level={0} hasCloser={true} type={type} variant={variant || 'card'} onCloserClick={onClose} > <div {...other}>{description}</div> </KolAlertFc> </div> ); }; export default ToastItemFc;

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