diff --git a/src/components/Modal/README.md b/src/components/Modal/README.md index e1188826..9dd84542 100644 --- a/src/components/Modal/README.md +++ b/src/components/Modal/README.md @@ -25,11 +25,11 @@ React.createElement(() => { const [modalOpen, setModalOpen] = React.useState(false); const modalPrimaryButtonRef = React.useRef(); const modalCloseButtonRef = React.useRef(); + {/* + The `preventScrollUnderneath` feature is necessary for Modals to work in + React UI docs. You may not need it in your application. + */} return ( - {/* - The `preventScrollUnderneath` feature is necessary for Modals to work in - React UI docs. You may not need it in your application. - */} @@ -121,11 +121,11 @@ React.createElement(() => { const [modalOpen, setModalOpen] = React.useState(null); const modalPrimaryButtonRef = React.useRef(); const modalCloseButtonRef = React.useRef(); + {/* + The `preventScrollUnderneath` feature is necessary for Modals to work in + React UI docs. You may not need it in your application. + */} return ( - {/* - The `preventScrollUnderneath` feature is necessary for Modals to work in - React UI docs. You may not need it in your application. - */} @@ -276,11 +276,11 @@ React.createElement(() => { const [variant, setVariant] = React.useState(null); const modalPrimaryButtonRef = React.useRef(); const modalCloseButtonRef = React.useRef(); + {/* + The `preventScrollUnderneath` feature is necessary for Modals to work in + React UI docs. You may not need it in your application. + */} return ( - {/* - The `preventScrollUnderneath` feature is necessary for Modals to work in - React UI docs. You may not need it in your application. - */} @@ -410,11 +410,11 @@ React.createElement(() => { const [modalJustify, setModalJustify] = React.useState('center'); const modalPrimaryButtonRef = React.useRef(); const modalCloseButtonRef = React.useRef(); + {/* + The `preventScrollUnderneath` feature is necessary for Modals to work in + React UI docs. You may not need it in your application. + */} return ( - {/* - The `preventScrollUnderneath` feature is necessary for Modals to work in - React UI docs. You may not need it in your application. - */} @@ -533,11 +533,11 @@ React.createElement(() => { const [modalSize, setModalSize] = React.useState('small'); const modalPrimaryButtonRef = React.useRef(); const modalCloseButtonRef = React.useRef(); + {/* + The `preventScrollUnderneath` feature is necessary for Modals to work in + React UI docs. You may not need it in your application. + */} return ( - {/* - The `preventScrollUnderneath` feature is necessary for Modals to work in - React UI docs. You may not need it in your application. - */} @@ -617,11 +617,11 @@ React.createElement(() => { const [modalOpen, setModalOpen] = React.useState(false); const modalPrimaryButtonRef = React.useRef(); const modalCloseButtonRef = React.useRef(); + {/* + The `preventScrollUnderneath` feature is necessary for Modals to work in + React UI docs. You may not need it in your application. + */} return ( - {/* - The `preventScrollUnderneath` feature is necessary for Modals to work in - React UI docs. You may not need it in your application. - */} @@ -685,11 +685,11 @@ React.createElement(() => { const [modalOpen, setModalOpen] = React.useState(false); const modalPrimaryButtonRef = React.useRef(); const modalCloseButtonRef = React.useRef(); + {/* + The `preventScrollUnderneath` feature is necessary for Modals to work in + React UI docs. You may not need it in your application. + */} return ( - {/* - The `preventScrollUnderneath` feature is necessary for Modals to work in - React UI docs. You may not need it in your application. - */} @@ -749,11 +749,11 @@ React.createElement(() => { const [modalPosition, setModalPosition] = React.useState('center'); const modalPrimaryButtonRef = React.useRef(); const modalCloseButtonRef = React.useRef(); + {/* + The `preventScrollUnderneath` feature is necessary for Modals to work in + React UI docs. You may not need it in your application. + */} return ( - {/* - The `preventScrollUnderneath` feature is necessary for Modals to work in - React UI docs. You may not need it in your application. - */} @@ -930,12 +930,12 @@ React.createElement(() => { ut, imperdiet a, venenatis vitae, justo.

- ) + ); + {/* + The `preventScrollUnderneath` feature is necessary for Modals to work in + React UI docs. You may not need it in your application. + */} return ( - {/* - The `preventScrollUnderneath` feature is necessary for Modals to work in - React UI docs. You may not need it in your application. - */}