@openmrs/esm-styleguide
Version:
The styleguide for OpenMRS SPA
12 lines (11 loc) • 650 B
TypeScript
/** @module @category UI */
import React from 'react';
export interface ResponsiveWrapperProps {
children: React.ReactNode;
}
/**
* ResponsiveWrapper enables a responsive behavior for the component its wraps, providing a different rendering based on the current layout type.
* On desktop, it renders the children as is, while on a tablet, it wraps them in a Carbon Layer https://react.carbondesignsystem.com/?path=/docs/components-layer--overview component.
* This provides a light background for form inputs on tablets, in accordance with the design requirements.
*/
export declare const ResponsiveWrapper: React.FC<ResponsiveWrapperProps>;