Skip to content

Commit 8619812

Browse files
committed
docs: update documentation
1 parent 233c771 commit 8619812

File tree

1 file changed

+10
-10
lines changed
  • packages/docs/content/4.1/components

1 file changed

+10
-10
lines changed

packages/docs/content/4.1/components/toast.mdx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ To encourage extensible and predictable toasts, we recommend a header and body.
3535
Toasts are as flexible as you need and have very little required markup. At a minimum, we require a single element to contain your "toasted" content and strongly encourage a dismiss button.
3636

3737
<Example>
38-
<CToast title="CoreUI for React.js" animation={false} autohide={false} visible={true}>
38+
<CToast animation={false} autohide={false} visible={true}>
3939
<CToastHeader closeButton>
4040
<svg
4141
className="rounded me-2"
@@ -56,7 +56,7 @@ Toasts are as flexible as you need and have very little required markup. At a mi
5656
</Example>
5757

5858
```jsx
59-
<CToast title="CoreUI for React.js" autohide={false} visible={true}>
59+
<CToast autohide={false} visible={true}>
6060
<CToastHeader closeButton>
6161
<svg
6262
className="rounded me-2"
@@ -80,7 +80,7 @@ export const BasicExample = () => {
8080
const [toast, addToast] = useState(0)
8181
const toaster = useRef()
8282
const exampleToast = (
83-
<CToast title="CoreUI for React.js">
83+
<CToast>
8484
<CToastHeader closeButton>
8585
<svg
8686
className="rounded me-2"
@@ -115,7 +115,7 @@ export const BasicExample = () => {
115115
const [toast, addToast] = useState(0)
116116
const toaster = useRef()
117117
const exampleToast = (
118-
<CToast title="CoreUI for React.js">
118+
<CToast>
119119
<CToastHeader closeButton>
120120
<svg
121121
className="rounded me-2"
@@ -147,7 +147,7 @@ return (
147147
Toasts are slightly translucent to blend in with what's below them.
148148

149149
<Example className="bg-dark border-0">
150-
<CToast title="CoreUI for React.js" autohide={false} visible={true}>
150+
<CToast autohide={false} visible={true}>
151151
<CToastHeader closeButton>
152152
<svg
153153
className="rounded me-2"
@@ -168,7 +168,7 @@ Toasts are slightly translucent to blend in with what's below them.
168168
</Example>
169169

170170
```jsx
171-
<CToast title="CoreUI for React.js" autohide={false} visible={true}>
171+
<CToast autohide={false} visible={true}>
172172
<CToastHeader closeButton>
173173
<svg
174174
className="rounded me-2"
@@ -194,7 +194,7 @@ You can stack toasts by wrapping them in a toast container, which will verticall
194194

195195
<Example>
196196
<CToaster>
197-
<CToast title="CoreUI for React.js" autohide={false} visible={true}>
197+
<CToast autohide={false} visible={true}>
198198
<CToastHeader closeButton>
199199
<svg
200200
className="rounded me-2"
@@ -212,7 +212,7 @@ You can stack toasts by wrapping them in a toast container, which will verticall
212212
</CToastHeader>
213213
<CToastBody>Hello, world! This is a toast message.</CToastBody>
214214
</CToast>
215-
<CToast title="CoreUI for React.js" autohide={false} visible={true}>
215+
<CToast autohide={false} visible={true}>
216216
<CToastHeader closeButton>
217217
<svg
218218
className="rounded me-2"
@@ -235,7 +235,7 @@ You can stack toasts by wrapping them in a toast container, which will verticall
235235

236236
```jsx
237237
<CToaster>
238-
<CToast title="CoreUI for React.js" autohide={false} visible={true}>
238+
<CToast autohide={false} visible={true}>
239239
<CToastHeader closeButton>
240240
<svg
241241
className="rounded me-2"
@@ -253,7 +253,7 @@ You can stack toasts by wrapping them in a toast container, which will verticall
253253
</CToastHeader>
254254
<CToastBody>Hello, world! This is a toast message.</CToastBody>
255255
</CToast>
256-
<CToast title="CoreUI for React.js" autohide={false} visible={true}>
256+
<CToast autohide={false} visible={true}>
257257
<CToastHeader closeButton>
258258
<svg
259259
className="rounded me-2"

0 commit comments

Comments
 (0)