Skip to content

Commit 104eed7

Browse files
fix(toast): show description
1 parent 1c01907 commit 104eed7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/interactive/toast/Toast.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ function ToastHeader(p: ToastPropsInternal) {
3737
<Icon1 path={p.icon!} class={toastIconCva(p.variant, p.iconClass)} />
3838
</Show>
3939
<p class={classMerge("text-lg font-bold break-words flex-1", p.titleClass)}>{p.title}</p>
40+
<Show when={p.description}>
41+
<p class={classMerge("break-words flex-1", p.descriptionClass)}>{p.description}</p>
42+
</Show>
4043
<ButtonIcon
4144
variant={buttonVariant.ghost}
4245
title={ct0(tbClose)}

0 commit comments

Comments
 (0)