UNPKG

@100mslive/roomkit-react

Version:

![Banner](https://github.com/100mslive/web-sdks/blob/06c65259912db6ccd8617f2ecb6fef51429251ec/prebuilt-banner.png)

23 lines (21 loc) 499 B
/** * Flex based centering helper styles */ export const flexCenter = { display: 'flex', justifyContent: 'center', alignItems: 'center', }; /** * Gives styles for text ellipsis, with given width as maxWidth. * A number in pixels or css width string value can be passed * @param {number|string} width * @returns */ export const textEllipsis = (width: number | string) => ({ maxWidth: width, overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', minWidth: 0, });