You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use the `<CAlertLink>` component to immediately give matching colored links inside any alert.
49
57
::: demo
50
58
<CAlertcolor="primary">
51
-
A simple primary alert with <CAlertLinkhref="#">an example link</CAlertLink>. Give it a click if you like.
59
+
A simple primary alert with <CAlertLinkhref="#">an example link</CAlertLink>. Give it a click if you like.
52
60
</CAlert>
53
61
<CAlertcolor="secondary">
54
-
A simple secondary alert with <CAlertLinkhref="#">an example link</CAlertLink>. Give it a click if you like.
62
+
A simple secondary alert with <CAlertLinkhref="#">an example link</CAlertLink>. Give it a click if you like.
55
63
</CAlert>
56
64
<CAlertcolor="success">
57
-
A simple success alert with <CAlertLinkhref="#">an example link</CAlertLink>. Give it a click if you like.
65
+
A simple success alert with <CAlertLinkhref="#">an example link</CAlertLink>. Give it a click if you like.
58
66
</CAlert>
59
67
<CAlertcolor="danger">
60
-
A simple danger alert with <CAlertLinkhref="#">an example link</CAlertLink>. Give it a click if you like.
68
+
A simple danger alert with <CAlertLinkhref="#">an example link</CAlertLink>. Give it a click if you like.
61
69
</CAlert>
62
70
<CAlertcolor="warning">
63
-
A simple warning alert with <CAlertLinkhref="#">an example link</CAlertLink>. Give it a click if you like.
71
+
A simple warning alert with <CAlertLinkhref="#">an example link</CAlertLink>. Give it a click if you like.
64
72
</CAlert>
65
73
<CAlertcolor="info">
66
-
A simple info alert with <CAlertLinkhref="#">an example link</CAlertLink>. Give it a click if you like.
74
+
A simple info alert with <CAlertLinkhref="#">an example link</CAlertLink>. Give it a click if you like.
67
75
</CAlert>
68
76
<CAlertcolor="light">
69
-
A simple light alert with <CAlertLinkhref="#">an example link</CAlertLink>. Give it a click if you like.
77
+
A simple light alert with <CAlertLinkhref="#">an example link</CAlertLink>. Give it a click if you like.
70
78
</CAlert>
71
79
<CAlertcolor="dark">
72
-
A simple dark alert with <CAlertLinkhref="#">an example link</CAlertLink>. Give it a click if you like.
80
+
A simple dark alert with <CAlertLinkhref="#">an example link</CAlertLink>. Give it a click if you like.
73
81
</CAlert>
74
82
:::
75
83
76
-
```markup
84
+
```vue
77
85
<CAlert color="primary">
78
86
A simple primary alert with <CAlertLink href="#">an example link</CAlertLink>. Give it a click if you like.
79
87
</CAlert>
@@ -106,36 +114,39 @@ Alert can also incorporate supplementary HTML elements like heading, paragraph,
106
114
107
115
::: demo
108
116
<CAlertcolor="success">
109
-
<CAlertHeading>Well done!</CAlertHeading>
117
+
<CAlertHeading>Well done!</CAlertHeading>
118
+
110
119
<p>Aww yeah, you successfully read this important alert message. This example text is going to run a bit longer so that you can see how spacing within an alert works with this kind of content.</p>
111
120
<hr />
112
121
<pclass="mb-0">Whenever you need to, be sure to use margin utilities to keep things nice and tidy.</p>
113
122
</CAlert>
114
123
:::
115
124
116
-
```markup
125
+
```vue
117
126
<CAlert color="success" v-bind:visible="true">
118
127
<CAlertHeading>Well done!</CAlertHeading>
119
128
<p>Aww yeah, you successfully read this important alert message. This example text is going to run a bit longer so that you can see how spacing within an alert works with this kind of content.</p>
120
129
<hr />
121
130
<p class="mb-0">Whenever you need to, be sure to use margin utilities to keep things nice and tidy.</p>
122
131
</CAlert>
123
132
```
133
+
124
134
### Icons
125
135
126
136
Similarly, you can use [flexbox utilities](https//coreui.io/docs/4.0/utilities/flex") and [CoreUI Icons](https://icons.coreui.io) to create alerts with icons. Depending on your icons and content, you may want to add more utilities or custom styles.
0 commit comments