allow toaster to render custom description

This commit is contained in:
tom
2025-06-26 18:33:52 +02:00
parent a8125caa3e
commit 3747294a97
2 changed files with 5 additions and 3 deletions
+4 -2
View File
@@ -38,8 +38,10 @@ export const Toaster = () => {
) : null }
<Stack gap="0" flex="1" maxWidth="100%">
{ toast.title && <Toast.Title>{ toast.title }</Toast.Title> }
{ toast.description && (
<Toast.Description>{ toast.description }</Toast.Description>
{ (toast.meta?.renderDescription || toast.description) && (
<Toast.Description>
{ toast.meta?.renderDescription?.() || toast.description }
</Toast.Description>
) }
</Stack>
{ toast.action && (
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@blockscout/ui-toolkit",
"version": "0.0.1-alpha.4",
"version": "2.2.0-alpha",
"description": "A comprehensive collection of reusable Chakra UI components and theme system for Blockscout's projects",
"type": "module",
"main": "./dist/index.js",