SectionCard

App

Titled content card with rounded-xl + border + bg-surface-raised + p-6. Header is separated by an underline; children slot accepts arbitrary content.

Basic — title + content

Preview

Account details

Name: Jane Doe

Email: jane@acme.com

Role: Administrator

Code
<%- include('modules/app/SectionCard', {
  title: 'Account details',
  children: `
    <div class="space-y-2 text-sm text-text-secondary">
      <p><span class="text-text-primary font-medium">Name:</span> <%= user.name %></p>
      <p><span class="text-text-primary font-medium">Email:</span> <%= user.email %></p>
      <p><span class="text-text-primary font-medium">Role:</span> <%= user.role %></p>
    </div>
  `
}) %>

Form section

Preview

Notification preferences

Code
<%- include('modules/app/SectionCard', {
  title: 'Notification preferences',
  children: `
    <div class="space-y-3">
      <%- include('modules/ui/Toggle', { label: 'Email updates',      checked: prefs.email }) %>
      <%- include('modules/ui/Toggle', { label: 'Push notifications', checked: prefs.push  }) %>
      <%- include('modules/ui/Toggle', { label: 'Weekly digest',      checked: prefs.weekly }) %>
    </div>
  `
}) %>
Source modules/app/SectionCard.ejs