MCPcopy Index your code
hub / github.com/codeaashu/claude-code / show

Function show

web/components/ui/toast.tsx:33–38  ·  view source on GitHub ↗
(data: Omit<ToastData, 'id'>)

Source from the content-addressed store, hash-verified

31
32export const toast = {
33 show(data: Omit<ToastData, 'id'>) {
34 const id = Math.random().toString(36).slice(2, 9)
35 toastList = [...toastList, { id, ...data }]
36 emit()
37 return id
38 },
39 success(title: string, description?: string) {
40 return this.show({ title, description, variant: 'success' })
41 },

Callers

nothing calls this directly

Calls 2

emitFunction · 0.70
toStringMethod · 0.65

Tested by

no test coverage detected