@ui5/webcomponents-react
Version:
React Wrapper for UI5 Web Components and additional components
27 lines (26 loc) • 1.26 kB
JavaScript
'use client';
import { withWebComponent } from '@ui5/webcomponents-react-base';
/**
* The `NavigationLayout` is a container component that can be used to
* create a layout with a header, a side navigation and a content area.
*
* ### Usage
*
* Use the `NavigationLayout` to create whole screen of an application with vertical navigation.
*
* ### Responsive Behavior
*
* On larger screens with a width of 600px or more, excluding mobile phone devices, the side navigation is visible
* by default and can be expanded or collapsed using the `mode` property.
* On mobile phone devices and screens with a width of 599px or less, the side navigation is hidden by
* default and can be displayed using the `mode` property.
*
*
*
* __Note:__ This is a UI5 Web Component! [NavigationLayout UI5 Web Component Documentation](https://ui5.github.io/webcomponents/components/fiori/NavigationLayout) | [Repository](https://github.com/UI5/webcomponents)
*
* @since [2.4.0](https://github.com/UI5/webcomponents/releases/tag/v2.4.0) of __@ui5/webcomponents-fiori__.
*/
const NavigationLayout = withWebComponent('ui5-navigation-layout', ['mode'], [], ['header', 'sideContent'], []);
NavigationLayout.displayName = 'NavigationLayout';
export { NavigationLayout };