Skip to content

Commit

Permalink
docs: improve widget docs
Browse files Browse the repository at this point in the history
  • Loading branch information
pemudakoding committed Jan 8, 2023
1 parent 10f9187 commit 1fe18ae
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,18 @@ This field has most of the same functionality of the Field class
### Widget
For implement alert box widget you can create a widget as usual then inheritance our package class
```php
use KoalaFacade\FilamentAlertBox\Widgets\AlertBoxWidget
use KoalaFacade\FilamentAlertBox\Widgets\AlertBoxWidget;

class YourWidgetTho extends AlertBoxWidget
{
public string | null $icon = 'heroicon-o-exclamation';

public string | Closure | null $icon = 'heroicon-o-exclamation';
/** success, warning, danger, primary */
public string $type = 'warning';
public string $type = 'success';

public string | null $label = 'Oops';
public string | Closure | null $label = 'Test';

public string | null $helperText = 'your ex blocked you';
public string | Closure | null | HtmlString $helperText = 'please shut u freakin mouth';
}
```
## License
Expand Down

0 comments on commit 1fe18ae

Please sign in to comment.