This is a tiny library for customizing components appearance
npm install @tinkoff/ng-polymorpheus



> Polymorpheus is a tiny library for polymorphic templates in Angular.
>
> It is 1 KB gzip, dependency free and allows you to make pretty cool things.
It abstracts over different ways of view customization in Angular with one simple _structural directive_:
``html`
Content accepts:
- primitives like number or stringcontext
- functions that take as argument and return a primitivecontext
- templates that get instantiated with given context` injected through DI
- components that would get
Context is optional when you need your content to adapt to the situation
Typical use case would be a component that accepts visual customization and defines context by itself. Say a menu list
where you can configure how each item should look like by passing a template. And context would be item itself and, for
example, whether it is focused or not.
Please see extensive demo.
You can also
read about this concept in detail.