UNPKG

piral-core

Version:

The core library for creating a Piral instance.

24 lines (23 loc) 676 B
import * as React from 'react'; import { LayoutBreakpoints, LayoutProps } from '../types'; /** * The props for the ResponsiveLayout component. */ export interface ResponsiveLayoutProps { /** * The individual breakpoints to be used for the different layouts. */ breakpoints?: LayoutBreakpoints; /** * The actual layout component to render to transport. */ Layout: React.ComponentType<LayoutProps>; /** * The content to display. */ children: React.ReactNode; } /** * The component capable of identifying and switching the currently used layout. */ export declare const ResponsiveLayout: React.FC<ResponsiveLayoutProps>;