UNPKG

@ui5/webcomponents-react

Version:

React Wrapper for UI5 Web Components and additional components

66 lines (65 loc) 2.63 kB
import type { ReactNode } from 'react'; import type { CommonProps } from '../../types/index.js'; export interface ResponsiveGridLayoutPropTypes extends CommonProps { /** * Number of columns to show on small screens (`max-width: 599px`) */ columnsS?: number; /** * Number of columns to show on medium screens (`width >= 600px and width <=1023px`) */ columnsM?: number; /** * Number of columns to show on large screens (`width >= 1024px and width <=1439px`) */ columnsL?: number; /** * Number of columns to show on extra large screens (`min-width: 1440px`) */ columnsXL?: number; /** * Defines how many columns a single child should cover on small screens. */ columnSpanS?: number; /** * Defines how many columns a single child should cover on medium screens. */ columnSpanM?: number; /** * Defines how many columns a single child should cover on large screens. */ columnSpanL?: number; /** * Defines how many columns a single child should cover on extra large. */ columnSpanXL?: number; /** * Gap between two columns of the grid */ columnGap?: '0.5rem' | '1rem'; /** * Gap between two rows of the grid */ rowGap?: '0.5rem' | '1rem'; /** * Child elements to be placed inside the grid. In case you want to control the column span of each child independently, * you can add an element style using the [gridColumn shorthand](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column). * * Example: If you want one child to span across 4 columns, you can add this element style to the child element: * `style={{ gridColumn: 'span 4' }}` */ children?: ReactNode | ReactNode[]; } /** * The Responsive Grid Layout positions UI elements in a multi-column flow layout. * They can be configured to display a variable number of columns depending on available screen size. * With these controls, it is possible to achieve flexible layouts and line breaks for large, medium, * and small-sized screens, such as desktop, tablet, and mobile. * * @deprecated there are no design concepts regarding this component outside a `Form`. * As the `Form` is now a UI5 web component which implements wrapping behavior on its own, this component is not needed anymore and will be removed in the next major version. * * @since 0.16.4 */ declare const ResponsiveGridLayout: import("react").ForwardRefExoticComponent<ResponsiveGridLayoutPropTypes & import("react").RefAttributes<HTMLDivElement>>; export { ResponsiveGridLayout };