Skip to content

Commit 7aa24a7

Browse files
committed
fix(alert): normalize optional title prop
1 parent 738358c commit 7aa24a7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/feedback/Alert/Alert.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ import Callout from '@/components/documentation/Callout';
33
type Props = Readonly<{ title?: string; variant?: 'info' | 'success' | 'warning' | 'danger' }>;
44
const { title, variant = 'info' } = Astro.props;
55
---
6-
<Callout {title} {variant}><slot /></Callout>
6+
<Callout title={title ?? ''} {variant}><slot /></Callout>

0 commit comments

Comments
 (0)