MCPcopy
hub / github.com/Semantic-Org/Semantic-UI-React / ModalContent

Function ModalContent

src/modules/Modal/ModalContent.js:17–34  ·  view source on GitHub ↗

* A modal can contain content.

(props)

Source from the content-addressed store, hash-verified

15 * A modal can contain content.
16 */
17function ModalContent(props) {
18 const { children, className, content, image, scrolling } = props
19
20 const classes = cx(
21 className,
22 useKeyOnly(image, 'image'),
23 useKeyOnly(scrolling, 'scrolling'),
24 'content',
25 )
26 const rest = getUnhandledProps(ModalContent, props)
27 const ElementType = getElementType(ModalContent, props)
28
29 return (
30 <ElementType {...rest} className={classes}>
31 {childrenUtils.isNil(children) ? content : children}
32 </ElementType>
33 )
34}
35
36ModalContent.propTypes = {
37 /** An element type to render as (string or function). */

Callers

nothing calls this directly

Calls 3

useKeyOnlyFunction · 0.90
getUnhandledPropsFunction · 0.90
getElementTypeFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…