# [Usage](../../../usage.md) > [Components](../basics.md) > [Visuals](../basics.md) > Alert

Inline contextual message for info, success, warning or danger states on a page. Use it for persistent page-level feedback that stays visible; use [Notification](../others/notification.md) with `session_messages` for flash feedback after redirects, and [simple_popup](../../utilities/frontend/simple_popup.md) for hover tooltips.

```php
{!!
    \KFramework\Components\Visual\Alert::make('Alert title')
        ->setType('primary')
        ->setContent('This is the alert message')
!!}
```

**End-to-end example:** warning banner linking to billing settings.
```php
// Blade:
{!!
    \KFramework\Components\Visual\Alert::make('Trial expiring')
        ->setType('warning')
        ->setContent('Your trial ends in 3 days. Renew to keep access.')
        ->setUrl('/settings/billing')
!!}

// Controller:
use KFramework\Components\Visual\Alert;

$alert = Alert::make('Trial expiring')
    ->setType('warning')
    ->setContent('Your trial ends in 3 days.');

return view('dashboard', compact('alert'));
```

---
## Usage

- Blade:
```php
{!! \KFramework\Components\Visual\Alert::make() !!}
```
- Controller:
```php
Alert::make()
```

---
## Standard attributes

- `uuid`
- `id`
- `classes`
- `extraAttributes`
- `style`
- `name` | `label`
  - Setting the name will set the label of the button, `name` overrides `label`.
- `type`:
  - `primary`
  - `secondary`
  - `success`
  - `warning`
  - `danger`  
  Default is `secondary`
- `hidden`
- `small`
- `columnSpan`
- `url`
  - Create a button on the alert that redirects to the URL.
- `content` — main message body rendered inside the alert box.
- `schema`
  - It can handle a schema, that will replace the content. Use `schema` when the alert needs buttons or nested components instead of plain text.

See their usage and description [here](../basics.md).

## See also
- [Components basics](../basics.md)
- [Notification](../others/notification.md), [Card](card.md), [FastCard](fastcard.md)
- [content](../shared_attributes/content.md), [schema](../shared_attributes/schema.md), [type](../shared_attributes/type.md)
- [session_messages](../../utilities/frontend/session_messages.md)
