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
Copy file name to clipboardExpand all lines: README.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,19 +36,19 @@ Make sure you add the following to your `theme.css` file.
36
36
The alerts can be used in your `infolists` or `forms`, make sure you pick the right component.
37
37
38
38
```php
39
-
use CodeWithDennis\SimpleAlert\Components\Infolists\SimpleAlert;
39
+
use CodeWithDennis\SimpleAlert\Components\SimpleAlert;
40
40
```
41
41
42
42
```php
43
-
use CodeWithDennis\SimpleAlert\Components\Forms\SimpleAlert;
43
+
use CodeWithDennis\SimpleAlert\Components\SimpleAlert;
44
44
```
45
45
46
46
### Simple Alerts
47
47
48
48
There are 4 types of simple alerts: `danger`, `info`, `success`, and `warning`.
49
49
50
50
```php
51
-
use CodeWithDennis\SimpleAlert\Components\Infolists\SimpleAlert;
51
+
use CodeWithDennis\SimpleAlert\Components\SimpleAlert;
52
52
53
53
SimpleAlert::make('example')
54
54
->danger()
@@ -60,7 +60,7 @@ SimpleAlert::make('example')
60
60
If you would like to use a [different color](https://filamentphp.com/docs/3.x/support/colors), you can use the `color` method.
61
61
62
62
```php
63
-
use CodeWithDennis\SimpleAlert\Components\Infolists\SimpleAlert;
63
+
use CodeWithDennis\SimpleAlert\Components\SimpleAlert;
64
64
65
65
SimpleAlert::make('example')
66
66
->color('purple')
@@ -71,7 +71,7 @@ SimpleAlert::make('example')
71
71
By default, simple alerts come with an icon. For example, the `->danger()` method includes a `heroicon-s-x-circle` icon. If you want to use a different icon, you can use the icon method.
72
72
73
73
```php
74
-
use CodeWithDennis\SimpleAlert\Components\Infolists\SimpleAlert;
74
+
use CodeWithDennis\SimpleAlert\Components\SimpleAlert;
75
75
//use Illuminate\Support\HtmlString;
76
76
77
77
SimpleAlert::make('example')
@@ -86,7 +86,7 @@ SimpleAlert::make('example')
86
86
You can add animation to the icon by passing the animation type as the second parameter to the `icon` method. Make sure to use the `IconAnimation` enum for the animation type.
87
87
88
88
```php
89
-
use CodeWithDennis\SimpleAlert\Components\Infolists\SimpleAlert;
89
+
use CodeWithDennis\SimpleAlert\Components\SimpleAlert;
90
90
use CodeWithDennis\SimpleAlert\Components\Enums\IconAnimation;
91
91
92
92
SimpleAlert::make('example')
@@ -98,7 +98,7 @@ SimpleAlert::make('example')
98
98
You can change the vertical alignment of the icon by using the `iconVerticalAlignment` method.
99
99
100
100
```php
101
-
use CodeWithDennis\SimpleAlert\Components\Infolists\SimpleAlert;
101
+
use CodeWithDennis\SimpleAlert\Components\SimpleAlert;
102
102
103
103
SimpleAlert::make('example')
104
104
->iconVerticalAlignment('start'), // possible values: start, center
@@ -109,7 +109,7 @@ SimpleAlert::make('example')
109
109
You can add a title to the alert by using the `title` method.
110
110
111
111
```php
112
-
use CodeWithDennis\SimpleAlert\Components\Infolists\SimpleAlert;
112
+
use CodeWithDennis\SimpleAlert\Components\SimpleAlert;
113
113
114
114
SimpleAlert::make('example')
115
115
->title('Hoorraayy! Your request has been approved! 🎉')
@@ -120,7 +120,7 @@ SimpleAlert::make('example')
120
120
You can add a description to the alert by using the `description` method.
121
121
122
122
```php
123
-
use CodeWithDennis\SimpleAlert\Components\Infolists\SimpleAlert;
123
+
use CodeWithDennis\SimpleAlert\Components\SimpleAlert;
124
124
125
125
SimpleAlert::make('example')
126
126
->description('This is the description')
@@ -131,7 +131,7 @@ SimpleAlert::make('example')
131
131
You can add a border to the alert by using the `border` method.
132
132
133
133
```php
134
-
use CodeWithDennis\SimpleAlert\Components\Infolists\SimpleAlert;
134
+
use CodeWithDennis\SimpleAlert\Components\SimpleAlert;
135
135
136
136
SimpleAlert::make('example')
137
137
->border()
@@ -141,7 +141,7 @@ SimpleAlert::make('example')
141
141
You can also add actions to the alert by using the `actions` method. All regular action features are supported.
142
142
143
143
```php
144
-
use CodeWithDennis\SimpleAlert\Components\Infolists\SimpleAlert;
144
+
use CodeWithDennis\SimpleAlert\Components\SimpleAlert;
145
145
use Filament\Forms\Components\Actions;
146
146
147
147
SimpleAlert::make('example')
@@ -163,7 +163,7 @@ SimpleAlert::make('example')
163
163
You can change the vertical alignment of the actions by using the `actionsVerticalAlignment` method.
164
164
165
165
```php
166
-
use CodeWithDennis\SimpleAlert\Components\Infolists\SimpleAlert;
166
+
use CodeWithDennis\SimpleAlert\Components\SimpleAlert;
167
167
use Filament\Forms\Components\Actions;
168
168
169
169
SimpleAlert::make('example')
@@ -174,7 +174,7 @@ SimpleAlert::make('example')
174
174
### Example
175
175
176
176
```php
177
-
use CodeWithDennis\SimpleAlert\Components\Infolists\SimpleAlert;
177
+
use CodeWithDennis\SimpleAlert\Components\SimpleAlert;
0 commit comments