File tree Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -45,3 +45,27 @@ export const Playground = {
45
45
dismissible : false ,
46
46
} ,
47
47
} ;
48
+
49
+ export const TitleWithLink = {
50
+ args : {
51
+ title : (
52
+ < >
53
+ Important: Please review our{ " " }
54
+ < a
55
+ href = { "https://clickhouse.com/docs" }
56
+ target = "_blank"
57
+ rel = "noopener noreferrer"
58
+ >
59
+ documentation
60
+ </ a > { " " }
61
+ before progressing
62
+ </ >
63
+ ) ,
64
+ text : "Example demos how you can pass react elements like links to the title prop" ,
65
+ state : "info" ,
66
+ size : "medium" ,
67
+ type : "default" ,
68
+ showIcon : true ,
69
+ dismissible : false ,
70
+ } ,
71
+ } ;
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ type AlertSize = "small" | "medium";
8
8
type AlertState = "neutral" | "success" | "warning" | "danger" | "info" ;
9
9
export type AlertProps = {
10
10
state ?: AlertState ;
11
- title ?: string ;
11
+ title ?: ReactNode ;
12
12
text : ReactNode ;
13
13
size ?: AlertSize ;
14
14
type ?: AlertType ;
You can’t perform that action at this time.
0 commit comments