All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.Panel.js Maven / Gradle / Ivy

There is a newer version: 15.0.9
Show newest version
/**
 * SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
 * SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
 */

import ClayPanel from '@clayui/panel';
import React, {useEffect, useRef} from 'react';

const PanelItem = ({children}) => {
	const ref = useRef();

	useEffect(() => {
		ref.current.appendChild(children);
	}, [children]);

	return 
; }; export default function Panel({ additionalProps: _additionalProps, children, collapsable, collapseClassNames, componentId: _componentId, cssClass, defaultExpanded, displayTitle, displayType, locale: _locale, portletId: _portletId, portletNamespace: _portletNamespace, showCollapseIcon, ...otherProps }) { return ( {Array.from(children).map((item, i) => ( {item} ))} ); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy