Skip to content

Commit ac8b839

Browse files
committed
fix starters typescript same as the tailwind example
1 parent 8a148ba commit ac8b839

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

starters/docs/src/Toast.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {Button} from './Button';
1111
import {X} from 'lucide-react';
1212
import './Toast.css';
1313
import {flushSync} from 'react-dom';
14+
import { CSSProperties } from 'react';
1415

1516
// Define the type for your toast content. This interface defines the properties of your toast content, affecting what you
1617
// pass to the queue calls as arguments.
@@ -38,7 +39,7 @@ export function MyToastRegion() {
3839
// The ToastRegion should be rendered at the root of your app.
3940
<ToastRegion queue={queue}>
4041
{({toast}) => (
41-
<MyToast toast={toast} style={{viewTransitionName: toast.key}}>
42+
<MyToast toast={toast} style={{viewTransitionName: toast.key} as CSSProperties}>
4243
<ToastContent>
4344
<Text slot="title">{toast.content.title}</Text>
4445
{toast.content.description && (

0 commit comments

Comments
 (0)