- {withIcon && icons[variant]}
+
+ {withIcon ? (
+
+ {withIcon && icons[variant]}
+
+ ) : null}
+ {icon && icon}
+
+
+ {title}
+
+
{children}
- ) : null}
- {icon && icon}
-
-
- {title}
-
-
{children}
+ {actions}
{closable && (
)}
diff --git a/src/lib/theme/defaultTheme.ts b/src/lib/theme/defaultTheme.ts
index 6942762d..f16d562a 100644
--- a/src/lib/theme/defaultTheme.ts
+++ b/src/lib/theme/defaultTheme.ts
@@ -252,11 +252,8 @@ export default {
alert: {
base: `
- relative
- rounded
- py-4 px-6
- flex space-x-4 items-start
- border
+ relative rounded border py-4 px-6
+ flex justify-between space-x-4 items-start
`,
header: 'block text-sm font-normal mb-1',
description: `text-xs`,