UNPKG

apphouse

Version:

Component library for React that uses observable state management and theme-able components.

21 lines (20 loc) 851 B
import { CSSProperties } from 'glamor'; /** * This file contains style snippets that can be used to satisfy common * requirements. */ /** * Fill parent height style * If you apply this style to an element, as long as the parent element has a * defined height, the element will fill the parent's height. * NOTE: Parent must have a defined height and position must be relative. * Use: allowChildToFillParentHeightStyle on parent */ export declare const fillParentHeightStyle: CSSProperties; /** * Helper to allow child to fill parent height * @param fixedHeight the height of the element, must be a fixed height for it to work * @returns CSSProperties */ export declare const getAllowChildToFillParentHeightStyle: (fixedHeight: string | number) => CSSProperties; export declare const truncateWithEllipsis: (width: number) => CSSProperties;