Skip to content

Commit 496e243

Browse files
committed
make title optional in alertbox
1 parent 3f2c621 commit 496e243

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

packages/ui-components/src/Common/AlertBox/index.stories.tsx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,21 @@ export const WithIcon: Story = {
9595
},
9696
};
9797

98+
export const NoTitle: Story = {
99+
args: {
100+
level: 'info',
101+
children: (
102+
<p>
103+
Lorem ipsum dolor sit amet consectetur
104+
adipisicing elit. Inventore, quasi doloremque. Totam, earum velit, sunt
105+
voluptates fugiat beatae praesentium quis magni explicabo repudiandae
106+
nam aut molestias ex ad sequi eum!
107+
</p>
108+
),
109+
size: 'default',
110+
},
111+
};
112+
98113
export default {
99114
component: AlertBox,
100115
argTypes: {

packages/ui-components/src/Common/AlertBox/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import styles from './index.module.css';
55

66
type AlertBoxProps = PropsWithChildren<{
77
level: 'info' | 'success' | 'warning' | 'danger' | 'neutral';
8-
title: string;
8+
title?: string;
99
size?: 'default' | 'small';
1010
}>;
1111

0 commit comments

Comments
 (0)