Skip to main content

CnDialogHeader

The board dialog header: an eyebrow, a 20px title, a subtitle and a round 36px close button. CnDialog renders it in the board look, so most dialogs never use it directly. Use it on its own only for a dialog or panel that cannot be built on CnDialog but should carry the same header.

The title is presentational (aria-hidden): the surrounding dialog's own heading is its accessible name, so a screen reader does not announce the title twice. Give the surrounding dialog that name.

Import​

import { CnDialogHeader } from '@conduction/nextcloud-vue'

Usage​

<CnDialogHeader
:title="t('myapp', 'New appointment')"
:eyebrow="t('myapp', 'Agenda')"
:subtitle="t('myapp', 'Plan a conversation with the client.')"
:no-close="saving"
@close="$emit('close')" />

Props​

PropTypeDefaultDescription
titlestring''Dialog title.
eyebrowstring''Context line above the title.
subtitlestring''Sentence under the title.
noClosebooleanfalseDisable the close button (a loading dialog).
closeLabelstring'Close'Accessible name of the close button.

Events​

EventPayloadDescription
closenoneThe close button was pressed.