# Layout Component Examples
## Example 1: Dashboard Page
```vue
Dashboard
API Keys
5
Total Usage
1,234
Balance
${{ balance }}
Status
Active
Recent Activity
No recent activity
```
---
## Example 2: Login Page
```vue
Welcome Back
Don't have an account?
Sign up
```
---
## Example 3: API Keys Page with Custom Header Title
```vue
API Keys
Name
Key
Status
Created
Actions
{{ key.name }}
{{ key.key }}
{{ key.status }}
{{ new Date(key.created_at).toLocaleDateString() }}
```
---
## Example 4: Admin Users Page
```vue
User Management
{{ user.username }}
{{ user.email }}
{{ user.role }}
${{ user.balance.toFixed(2) }}
```
---
## Example 5: Profile Page
```vue
Profile Settings
Account Information
{{ user?.username }}
{{ user?.email }}
{{ user?.role }}
${{ user?.balance.toFixed(2) }}
Change Password
```
---
## Tips for Using Layouts
1. **Page Titles**: Set route meta to automatically display page titles in the header
2. **Loading States**: Use `appStore.setLoading(true/false)` for global loading indicators
3. **Toast Notifications**: Use `appStore.showSuccess()`, `appStore.showError()`, etc.
4. **Authentication**: All authenticated pages should use `AppLayout`
5. **Auth Pages**: Login and Register pages should use `AuthLayout`
6. **Sidebar State**: The sidebar state persists across navigation
7. **Mobile First**: All examples are responsive by default using Tailwind's mobile-first approach