For AI agents: the complete documentation index is available at https://payhon.github.io/AppKernia/en-US/llms.txt, the full documentation bundle is available at https://payhon.github.io/AppKernia/en-US/llms-full.txt, and this page is available as Markdown at https://payhon.github.io/AppKernia/en-US/mobile-components/modal-switch.md.

ak-modal and ak-switch

<ak-modal
  :open="confirming"
  :title="t('sessions.revoke.title')"
  :message="t('sessions.revoke.message', { device: selectedDevice })"
  :cancel-text="t('common.actions.cancel')"
  :confirm-text="t('sessions.actions.revoke')"
  @cancel="confirming = false"
  @confirm="revokeSession"
/>

ak-modal accepts open, title, message, cancelText, and confirmText. It emits cancel and confirm with no payload. Its confirm button currently uses the danger variant, so reserve it for destructive or security-sensitive actions.

<ak-switch v-model="pushEnabled" @change="savePushPreference" />

ak-switch accepts modelValue: Boolean = false and emits both update:modelValue and change with the next boolean. Remote save failures are the page's responsibility: roll back and explain the error so UI and server truth do not drift.