With Content
A real-world settings card composing tabs with form elements, profiles, and action rows.
Jane Doe
jane@example.com
Two-factor authentication
Add an extra layer of security to your account.
Email notifications
Receive updates by email.
Push notifications
Receive push alerts on mobile.
Weekly digest
A weekly summary of your activity.
<x-ui::card>
<x-ui::tabs default="profile" variant="underline">
<x-slot:tabs>
<x-ui::tab name="profile" icon="user">Profile</x-ui::tab>
<x-ui::tab name="security" icon="shield-check">Security</x-ui::tab>
<x-ui::tab name="notifications" icon="bell">Notifications</x-ui::tab>
</x-slot:tabs>
{{-- Profile tab --}}
<x-ui::tab-panel name="profile" class="space-y-5">
<div class="flex items-center gap-4">
<x-ui::avatar name="Jane Doe" size="lg" />
<div class="space-y-1">
<x-ui::heading level="6">Jane Doe</x-ui::heading>
<x-ui::text variant="muted">jane@example.com</x-ui::text>
</div>
</div>
<x-ui::separator />
<x-ui::input label="Display name" value="Jane Doe" />
<x-ui::input label="Email address" value="jane@example.com" type="email" />
<x-ui::button variant="primary">Save changes</x-ui::button>
</x-ui::tab-panel>
{{-- Security tab --}}
<x-ui::tab-panel name="security" class="space-y-5">
<x-ui::switch :checked="true" color="green"
label="Two-factor authentication"
description="Add an extra layer of security to your account." />
<x-ui::separator />
<x-ui::input label="Current password" type="password" />
<x-ui::input label="New password" type="password" />
<x-ui::button variant="primary">Update password</x-ui::button>
</x-ui::tab-panel>
{{-- Notifications tab --}}
<x-ui::tab-panel name="notifications" class="space-y-5">
<x-ui::switch :checked="true" label="Email notifications"
description="Receive updates by email." />
<x-ui::switch label="Push notifications"
description="Receive push alerts on mobile." />
<x-ui::switch :checked="true" label="Weekly digest"
description="A weekly summary of your activity." />
</x-ui::tab-panel>
</x-ui::tabs>
</x-ui::card>