انتقل إلى المحتوى
الأدلة
التنقل
التنبيهات
الطبقات العائمة
التخطيط
عرض البيانات
النماذج
.md

التنبيهات

alert

تنبيه للرسائل القصيرة والمهمة.

التثبيت

php artisan ui:add alert

الاستخدام

<x-ui.alert title="Heads up!">
    You can add components to your app using the CLI.
</x-ui.alert>

<x-ui.alert variant="destructive" title="Payment failed">
    Your card was declined. Try another payment method.
</x-ui.alert>

الأنماط: default وdestructive. خيارات icon وtitle اختيارية.

الخصائص

كل خاصية مع قيمتها الافتراضية. مرّر أيًّا منها كسمة، واستخدم : لربط قيمة PHP.

@props([
    'variant' => 'default',
    'title' => null,
])