docs/loremipsum.md
:::{php:namespace} Atk4\Ui
:::
(loremipsum)=
# LoremIpsum
:::{php:class} LoremIpsum
:::
This class implements a standard filler-text which is so popular amongst web developers and designers.
LoremIpsum will generate a dynamic filler text which should help you test {ref}`reloading` or layouts.
## Basic Usage
```
LoremIpsum::addTo($app);
```
## Resizing
You can define the length of the LoremIpsum text:
```
$text = Text::addTo($app)
->addParagraph('First Paragraph')
->addParagraph('Second Paragraph');
```
You may specify amount of text to be generated with lorem:
```
LoremIpsum::addTo($app, [1]); // just add a little one
// or
LoremIpsum::addTo($app, [5]); // adds a lot of text
```