Commit be7b9fc4 authored by tom's avatar tom

allow toaster to render custom description

parent 3fbbcd2e
......@@ -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 && (
......
{
"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",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment