Skip to content

Commit 7d617dd

Browse files
committed
docs: update content
1 parent 0340634 commit 7d617dd

File tree

1 file changed

+14
-14
lines changed
  • packages/docs/content/4.2/components

1 file changed

+14
-14
lines changed

packages/docs/content/4.2/components/modal.mdx

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: React Modal Component
33
name: Modal
4-
description: React Modal component offers a lightweight, multi-purpose popup to add dialogs to yours. Learn how to customize React CoreUI Modals easily. Multiple examples and tutorial.
4+
description: React Modal component offers a lightweight, multi-purpose popup to add dialogs to yours. Learn how to customize CoreUI React modal components easily. Multiple examples and tutorial.
55
menu: Components
66
route: /components/modal
77
---
@@ -19,11 +19,11 @@ import {
1919
CTooltip,
2020
} from '@coreui/react/src/index'
2121

22-
## Examples
22+
## How to use React Modal Component?
2323

24-
### Modal components
24+
### Static modal component example
2525

26-
Below is a static modal example (meaning its `position` and `display` have been overridden). Included are the modal header, modal body (required for `padding`), and modal footer (optional). We ask that you include modal headers with dismiss actions whenever possible, or provide another explicit dismiss action.
26+
Below is a static react modal component example (meaning its `position` and `display` have been overridden). Included are the modal header, modal body (required for `padding`), and modal footer (optional). We ask that you include react modal headers with dismiss actions whenever possible, or provide another explicit dismiss action.
2727

2828
<Example>
2929
<CModal
@@ -34,9 +34,9 @@ Below is a static modal example (meaning its `position` and `display` have been
3434
visible
3535
>
3636
<CModalHeader>
37-
<CModalTitle>Modal title</CModalTitle>
37+
<CModalTitle>React Modal title</CModalTitle>
3838
</CModalHeader>
39-
<CModalBody>Modal body text goes here.</CModalBody>
39+
<CModalBody>React Modal body text goes here.</CModalBody>
4040
<CModalFooter>
4141
<CButton color="secondary">Close</CButton>
4242
<CButton color="primary">Save changes</CButton>
@@ -53,9 +53,9 @@ Below is a static modal example (meaning its `position` and `display` have been
5353
visible
5454
>
5555
<CModalHeader>
56-
<CModalTitle>Modal title</CModalTitle>
56+
<CModalTitle>React Modal title</CModalTitle>
5757
</CModalHeader>
58-
<CModalBody>Modal body text goes here.</CModalBody>
58+
<CModalBody>React Modal body text goes here.</CModalBody>
5959
<CModalFooter>
6060
<CButton color="secondary">Close</CButton>
6161
<CButton color="primary">Save changes</CButton>
@@ -65,7 +65,7 @@ Below is a static modal example (meaning its `position` and `display` have been
6565

6666
### Live demo
6767

68-
Toggle a working modal demo by clicking the button below. It will slide down and fade in from the top of the page.
68+
Toggle a working React modal component demo by clicking the button below. It will slide down and fade in from the top of the page.
6969

7070
export const LiveDemoExample = () => {
7171
const [visible, setVisible] = useState(false)
@@ -115,7 +115,7 @@ return (
115115
116116
### Static backdrop
117117
118-
If you set a `backdrop` to `static`, your modal will behave as though the backdrop is static, meaning it will not close when clicking outside it. Click the button below to try it.
118+
If you set a `backdrop` to `static`, your React modal component will behave as though the backdrop is static, meaning it will not close when clicking outside it. Click the button below to try it.
119119
120120
export const StaticBackdropExample = () => {
121121
const [visible, setVisible] = useState(false)
@@ -375,7 +375,7 @@ return (
375375
)
376376
```
377377
378-
You can also create a scrollable modal that allows scroll the modal body by adding `scrollable` prop.
378+
You can also create a scrollable react modal component that allows scroll the modal body by adding `scrollable` prop.
379379
380380
export const ScrollingLongContentExample2 = () => {
381381
const [visible, setVisible] = useState(false)
@@ -583,7 +583,7 @@ return (
583583
584584
### Vertically centered
585585
586-
Add `alignment="center` to `<CModal>` to vertically center the modal.
586+
Add `alignment="center` to `<CModal>` to vertically center the React modal.
587587
588588
export const VerticallyCenteredExample = () => {
589589
const [visible, setVisible] = useState(false)
@@ -729,7 +729,7 @@ return (
729729
730730
### Tooltips and popovers
731731
732-
`<CTooltips>` and `<CPopovers>` can be placed within modals as needed. When modals are closed, any tooltips and popovers within are also automatically dismissed.
732+
`<CTooltips>` and `<CPopovers>` can be placed within react modals as needed. When modal components are closed, any tooltips and popovers within are also automatically dismissed.
733733
734734
export const TooltipsAndPopoversExample = () => {
735735
const [visible, setVisible] = useState(false)
@@ -933,7 +933,7 @@ return (
933933
934934
## Fullscreen Modal
935935
936-
Another override is the option to pop up a modal that covers the user viewport, available via property `fullscrean`.
936+
Another override is the option to pop up a React modal component that covers the user viewport, available via property `fullscrean`.
937937
938938
<table className="table">
939939
<thead>

0 commit comments

Comments
 (0)