You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Leaf Sprout comes with a built-in output styling system that allows you to style your output using a simple API adapted from TermWind. Here's an example of how you can style your output:
88
88
@@ -118,24 +118,37 @@ Most of the styling options are chainable, so you can chain multiple styles toge
Leaf Sprout comes with a built-in output styling system that allows you to style your output using a simple API adapted from Symfony Console. Here's an example of how you can style your output:
$this->write("<question>Are you sure?</question>");
131
+
```
132
+
133
+
Or you can use pre-configured styles like `success()`, `error()`, `warning()`, and `info()`:
134
+
135
+
```php
136
+
$this->success('Operation successful');
137
+
$this->error('Operation failed');
138
+
$this->warning('This is a warning');
139
+
$this->info('This is some information');
121
140
```
122
141
142
+
Later versions will include more advanced styling options modelled after TailwindCSS and TermWind.
143
+
123
144
## Input Handling
124
145
125
146
Leaf Sprout comes with a built-in input handling system that allows you to easily get input from the user. The easiest way is to use the `prompt()` method:
0 commit comments