| 1 |
/// <reference types="react" /> |
| 2 |
import { DrawerProps } from '../Drawer'; |
| 3 |
export interface CompassProps extends React.HTMLProps<HTMLDivElement> { |
| 4 |
/** Additional classes added to the Compass. */ |
| 5 |
className?: string; |
| 6 |
/** The horizontal masthead content (e.g. <Masthead />). This masthead will only render when dock content is passed and only at mobile viewports. */ |
| 7 |
masthead?: React.ReactNode; |
| 8 |
/** Content of the docked navigation area of the layout */ |
| 9 |
dock?: React.ReactNode; |
| 10 |
/** @beta Flag indicating the docked nav is expanded on mobile. Only applies when dock content is passed. */ |
| 11 |
isDockExpanded?: boolean; |
| 12 |
/** @beta Flag indicating the docked nav should display text on desktop. Only applies when dock content is passed, and |
| 13 |
* will handle toggling the visibility of the text in individual isDocked components. |
| 14 |
*/ |
| 15 |
isDockTextExpanded?: boolean; |
| 16 |
/** Content placed at the top of the compass layout */ |
| 17 |
header?: React.ReactNode; |
| 18 |
/** Flag indicating if the header is expanded */ |
| 19 |
isHeaderExpanded?: boolean; |
| 20 |
/** Content placed at the horizontal start of the layout, before the main content */ |
| 21 |
sidebarStart?: React.ReactNode; |
| 22 |
/** Flag indicating if the start sidebar is expanded */ |
| 23 |
isSidebarStartExpanded?: boolean; |
| 24 |
/** Content placed at the center of the layout */ |
| 25 |
main?: React.ReactNode; |
| 26 |
/** Content placed at the horizontal end of the layout, after the main content */ |
| 27 |
sidebarEnd?: React.ReactNode; |
| 28 |
/** Flag indicating if the end sidebar is expanded */ |
| 29 |
isSidebarEndExpanded?: boolean; |
| 30 |
/** Content placed at the bottom of the layout */ |
| 31 |
footer?: React.ReactNode; |
| 32 |
/** Flag indicating if the footer is expanded */ |
| 33 |
isFooterExpanded?: boolean; |
| 34 |
/** Content rendered in an optional drawer wrapping the layout */ |
| 35 |
drawerContent?: React.ReactNode; |
| 36 |
/** Additional props passed to the drawer */ |
| 37 |
drawerProps?: DrawerProps; |
| 38 |
} |
| 39 |
export declare const Compass: React.FunctionComponent<CompassProps>; |
| 40 |
//# sourceMappingURL=Compass.d.ts.map |