Yii2 Widgets provide several useful widgets for Yii2 applications.
For example the LimitedTextarea Widget
kmergen\widgets\LimitedTextarea::widget([
'attribute' => 'body',
'model' => $model,
'form' => $form
]);