Skip to content

Commit

Permalink
Screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeWithDennis committed Jun 27, 2024
1 parent 958acc4 commit 6d5f3cd
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 3 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ You can add a title to the alert by using the `title` method:

```php
SimpleAlertEntry::make()
->title('This is the title')
->title('Hoorraayy! Your request has been approved! 🎉')
```

### Description
Expand Down Expand Up @@ -95,12 +95,20 @@ SimpleAlertEntry::make()
SimpleAlertEntry::make()
->success()
->title(new HtmlString('<strong>Hoorraayy! Your request has been approved! 🎉</strong>'))
->description('Lorem ipsum dolor sit amet consectetur adipisicing elit.')
->description('Lorem ipsum dolor sit amet consectetur adipisicing elit.')
->link('https://filamentphp.com')
->linkLabel('Read more!')
->linkBlank(),
```

### Screenshots

![success](resources/screenshots/success.png)
![danger](resources/screenshots/danger.png)
![info](resources/screenshots/info.png)
![warning](resources/screenshots/warning.png)
![info](resources/screenshots/info-with-link.png)

## Contributing

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.
Expand Down
Binary file added img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/screenshots/danger.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/screenshots/info-with-link.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/screenshots/info.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/screenshots/success.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/screenshots/warning.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Closure;
use Filament\Infolists\Components\Entry;

class SimpleAlertEntry extends Entry
class SimpleAlert extends Entry
{
protected string $view = 'filament-simple-alert::simple-alert-entry';

Expand Down Expand Up @@ -48,6 +48,7 @@ public function info(): static

public function success(): static
{
$this->type = 'success';
$this->icon = 'heroicon-s-check-circle';

return $this;
Expand Down

0 comments on commit 6d5f3cd

Please sign in to comment.