@7kasper/ngx-fittext
Version:
**@7kasper/ngx-fittext** is an Angular library that allow you fit text in a box or a line.
15 lines (14 loc) • 334 B
HTML
<div
#wrapperDiv
style="position: relative;background-color: antiquewhite;"
[style.width]="width || '100%'"
[style.height]="height"
>
<div
#controllerDiv
[style.lineHeight]="lineHeight"
style="width: 100%; position: absolute;display: inline-flex;"
>
<ng-content></ng-content>
</div>
</div>