This change introduces a Styler interface that allows users to define
custom styles for bubbles. The interface is implemented by the StylerFunc
type, which is a function type that takes a boolean argument and returns
a value of any type.
This allows a user to define a custom StylerFunc that returns a custom
style for a bubble based on the background color of the terminal.
* feat: allow to set the height of the item
The user might want to show more than 2 lines, and, right now, if they
try to do so, things break.
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
* fix: short-circuit if width <= 0
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
* fix: height check
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>