@kubit-ui-web/react-components
Version:
Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience
17 lines • 617 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.maxTruncatedLinesMixin = exports.truncateMixin = void 0;
const styled_components_1 = require("styled-components");
exports.truncateMixin = (0, styled_components_1.css) `
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
`;
const maxTruncatedLinesMixin = (maxLines) => (0, styled_components_1.css) `
display: -webkit-box;
-webkit-line-clamp: ${maxLines};
-webkit-box-orient: vertical;
overflow: hidden;
`;
exports.maxTruncatedLinesMixin = maxTruncatedLinesMixin;
//# sourceMappingURL=truncate.mixin.js.map