File tree Expand file tree Collapse file tree 2 files changed +23
-11
lines changed
packages/ui-components/Common/AlertBox Expand file tree Collapse file tree 2 files changed +23
-11
lines changed Original file line number Diff line number Diff line change 1111 text-sm
1212 text-white;
1313
14- a {
15- @apply font-bold
16- text-white
17- underline
18- hover:text-white;
19-
20- & : hover {
21- @apply no-underline;
22- }
23- }
24-
2514 & .small {
2615 @apply gap-1
2716 py-2
Original file line number Diff line number Diff line change @@ -6,6 +6,12 @@ import AlertBox from '#ui/Common/AlertBox';
66type Story = StoryObj < typeof AlertBox > ;
77type Meta = MetaObj < typeof AlertBox > ;
88
9+ const withMain = ( args : React . ComponentProps < typeof AlertBox > ) => (
10+ < main >
11+ < AlertBox { ...args } />
12+ </ main >
13+ ) ;
14+
915export const Info : Story = {
1016 args : {
1117 level : 'info' ,
@@ -46,6 +52,23 @@ export const Danger: Story = {
4652 } ,
4753} ;
4854
55+ export const InMarkdown : Story = {
56+ args : {
57+ level : 'danger' ,
58+ title : '0' ,
59+ children : (
60+ < >
61+ < code > Code renders correctly,</ code > { ' ' }
62+ < a href = "#" >
63+ < code > even when in a link</ code >
64+ </ a >
65+ </ >
66+ ) ,
67+ size : 'default' ,
68+ } ,
69+ render : withMain ,
70+ } ;
71+
4972export const WithIcon : Story = {
5073 args : {
5174 level : 'info' ,
You can’t perform that action at this time.
0 commit comments