MCPcopy Index your code
hub / github.com/adobe/react-spectrum / MyToast

Function MyToast

starters/tailwind/src/Toast.tsx:68–79  ·  view source on GitHub ↗
(props: ToastProps<MyToastContent>)

Source from the content-addressed store, hash-verified

66}
67
68export function MyToast(props: ToastProps<MyToastContent>) {
69 return (
70 <Toast
71 {...props}
72 style={{viewTransitionName: props.toast.key} as CSSProperties}
73 className={composeTailwindRenderProps(
74 props.className,
75 'flex items-center gap-4 bg-blue-600 px-4 py-3 rounded-lg outline-none forced-colors:outline focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-blue-600 focus-visible:outline-offset-2 [view-transition-class:toast] font-sans w-[230px]'
76 )}
77 />
78 );
79}

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected