Drawers
Drawer blocks built on aegov-drawer: panels that slide in from the edge of the screen for focused tasks such as settings, filters or details, while the page stays in view behind them.
Drawer Example 01
A preferences drawer for a signed-in service: appearance, language and region, and notifications, with a live preview that shows each choice before it is saved. Save stays disabled until something changes, and closing without saving puts everything back.
Drawer Example 01
<div class="min-h-[max(100dvh,48rem)] bg-aeblack-50">
<div class="flex items-center justify-between gap-4 border-b border-aeblack-100 bg-white px-4 py-3 sm:px-8">
<div role="img" aria-label="Logo" class="relative flex h-10 w-32 items-center justify-center overflow-hidden rounded-lg border-2 border-dashed border-aeblack-200 bg-white">
<svg aria-hidden="true" class="absolute inset-0 size-full text-aeblack-200" preserveAspectRatio="none" viewBox="0 0 100 100" fill="none"><line x1="0" y1="0" x2="100" y2="100" stroke="currentColor" stroke-width="1" vector-effect="non-scaling-stroke"/><line x1="100" y1="0" x2="0" y2="100" stroke="currentColor" stroke-width="1" vector-effect="non-scaling-stroke"/></svg>
<span aria-hidden="true" class="relative rounded bg-white px-2 text-sm font-semibold text-aeblack-500">Logo</span>
</div>
<aegov-button data-preferences-open variant="neutral-max" appearance="outline" size="base">
<svg class="hidden sm:block" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"/><circle cx="12" cy="12" r="3"/></svg>
Preferences
</aegov-button>
</div>
<div aria-hidden="true" class="mx-auto max-w-5xl px-4 py-8 sm:px-8">
<div class="h-5 w-56 rounded-full bg-aeblack-200"></div>
<div class="mt-3 h-3 w-80 max-w-full rounded-full bg-aeblack-100"></div>
<div class="mt-8 grid gap-4 sm:grid-cols-3">
<div class="h-28 rounded-2xl bg-white ring-1 ring-aeblack-950/5"></div>
<div class="h-28 rounded-2xl bg-white ring-1 ring-aeblack-950/5"></div>
<div class="h-28 rounded-2xl bg-white ring-1 ring-aeblack-950/5"></div>
<div class="h-64 rounded-2xl bg-white ring-1 ring-aeblack-950/5 sm:col-span-3"></div>
</div>
</div>
</div>
<aegov-drawer id="preferences-drawer" position="right" size="base" is-pinned="false" is-padding="false" label="Preferences">
<div data-preferences class="flex min-h-full flex-col bg-aeblack-100/50 text-aeblack-800">
<div class="sticky top-0 z-10 flex items-center gap-3 border-b border-aeblack-100 bg-whitely-50/90 px-5 py-4 backdrop-blur sm:px-6">
<span aria-hidden="true" class="flex size-10 shrink-0 items-center justify-center rounded-xl bg-aeblack-900 text-white shadow-sm">
<svg class="size-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 7h-9M14 17H5"/><circle cx="17" cy="17" r="3"/><circle cx="7" cy="7" r="3"/></svg>
</span>
<div class="min-w-0 flex-1">
<h2 class="text-lg font-bold text-aeblack-900">Preferences</h2>
<p class="truncate text-xs text-aeblack-600">Make the service work the way you like</p>
</div>
<aegov-button data-preferences-close appearance="link" variant="neutral-max" size="sm" is-icon="true" aria-label="Close preferences">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18M6 6l12 12"/></svg>
</aegov-button>
</div>
<div class="flex-1 space-y-7 px-4 py-5 sm:px-6 sm:py-6">
<div class="flex items-center gap-3 rounded-2xl bg-white p-3 shadow-xs ring-1 ring-aeblack-950/5">
<aegov-avatar src="/storage/blocks/team/person-1.webp" alt="" size="base" appearance="rounded"></aegov-avatar>
<div class="min-w-0 flex-1">
<p class="truncate text-sm font-semibold text-aeblack-900">Mohammed Al Mansouri</p>
<p class="truncate text-xs text-aeblack-600">Saved to your account, on every device</p>
</div>
<aegov-badge variant="aegreen" size="sm">Synced</aegov-badge>
</div>
<div>
<div aria-hidden="true" class="rounded-[1.5rem] bg-aeblack-100 p-1.5 ring-1 ring-aeblack-950/5">
<div class="flex items-center gap-1.5 px-2.5 pt-1 pb-2">
<span class="size-2 rounded-full bg-aeblack-300"></span><span class="size-2 rounded-full bg-aeblack-300"></span><span class="size-2 rounded-full bg-aeblack-300"></span>
<span class="mx-auto h-2 w-24 rounded-full bg-aeblack-200"></span>
</div>
<div data-pref-preview data-theme="light" data-size="0" class="group rounded-[1.125rem] bg-white p-4 shadow-sm transition-colors duration-300 data-[motion=reduced]:transition-none data-[theme=dark]:bg-aeblack-900">
<div class="flex items-center justify-between gap-3">
<span class="flex items-center gap-2"><span class="size-2 rounded-full bg-aegreen-500"></span><span data-preview-text="portal" class="text-xs font-medium text-aeblack-600 group-data-[theme=dark]:text-aeblack-200">Your services</span></span>
<span data-preview-time class="text-xs tabular-nums text-aeblack-600 group-data-[theme=dark]:text-aeblack-200">14:30</span>
</div>
<p data-preview-text="greeting" class="mt-3 text-base font-semibold text-aeblack-900 group-data-[size=1]:text-lg group-data-[size=2]:text-h6 group-data-[theme=dark]:text-whitely-50">Good morning, Mohammed</p>
<div class="mt-3 flex items-center justify-between gap-3 rounded-xl bg-aeblack-50 p-3 group-data-[theme=dark]:bg-aeblack-800">
<div class="min-w-0">
<p data-preview-text="service" class="text-sm font-semibold text-aeblack-800 group-data-[size=1]:text-base group-data-[size=2]:text-lg group-data-[theme=dark]:text-whitely-50">Trade licence renewal</p>
<p class="mt-0.5 text-xs text-aeblack-600 group-data-[theme=dark]:text-aeblack-200"><span data-preview-text="updated">Updated</span> <span data-preview-date>16/11/2026</span></p>
</div>
<p data-preview-fee class="shrink-0 text-sm font-semibold tabular-nums text-aeblack-800 group-data-[size=1]:text-base group-data-[size=2]:text-lg group-data-[theme=dark]:text-whitely-50">AED 1,250</p>
</div>
</div>
</div>
<p class="mt-2 flex items-center justify-center gap-1.5 text-xs text-aeblack-600"><span aria-hidden="true" class="size-1.5 rounded-full bg-aegreen-500 motion-safe:animate-pulse"></span>Live preview of your choices</p>
</div>
<section aria-labelledby="pref-appearance" class="space-y-2">
<h3 id="pref-appearance" class="px-1 text-xs font-semibold tracking-wide text-aeblack-600 uppercase">Appearance</h3>
<div class="divide-y divide-aeblack-100 rounded-2xl bg-white shadow-xs ring-1 ring-aeblack-950/5">
<div class="p-4">
<aegov-radio-group data-pref="theme" name="theme" label="Theme" appearance="cards" orientation="horizontal" variant="neutral-max" size="sm" class="block">
<aegov-radio value="light" label="Light" is-checked="true" class="min-w-0 flex-1">
<span slot="hint" aria-hidden="true" class="mt-2 block w-14 sm:w-18 overflow-hidden rounded-md bg-white p-1.5 ring-1 ring-aeblack-100"><span class="block h-1.5 w-2/3 rounded-full bg-aeblack-200"></span><span class="mt-1.5 block h-4 rounded bg-aeblack-100"></span></span>
</aegov-radio>
<aegov-radio value="dark" label="Dark" class="min-w-0 flex-1">
<span slot="hint" aria-hidden="true" class="mt-2 block w-14 sm:w-18 overflow-hidden rounded-md bg-aeblack-900 p-1.5 ring-1 ring-aeblack-800"><span class="block h-1.5 w-2/3 rounded-full bg-aeblack-600"></span><span class="mt-1.5 block h-4 rounded bg-aeblack-700"></span></span>
</aegov-radio>
<aegov-radio value="system" label="System" class="min-w-0 flex-1">
<span slot="hint" aria-hidden="true" class="mt-2 grid w-14 sm:w-18 grid-cols-2 overflow-hidden rounded-md ring-1 ring-aeblack-100"><span class="block bg-white p-1.5"><span class="block h-1.5 w-2/3 rounded-full bg-aeblack-200"></span><span class="mt-1.5 block h-4 rounded-s bg-aeblack-100"></span></span><span class="block bg-aeblack-900 p-1.5"><span class="block h-1.5 w-1/2 rounded-full bg-aeblack-600"></span><span class="mt-1.5 block h-4 rounded-e bg-aeblack-700"></span></span></span>
</aegov-radio>
</aegov-radio-group>
</div>
<div class="p-4">
<aegov-range data-pref="size" label="Text size" min="0" max="2" step="1" value="0" display="none" variant="neutral-max" aria-valuetext="Default" class="block"></aegov-range>
<p aria-hidden="true" class="mt-1 flex items-baseline justify-between text-aeblack-600"><span class="text-xs">Default</span><span class="text-sm">Large</span><span class="text-base font-medium">Larger</span></p>
</div>
<div class="flex items-center gap-3 px-4 py-3.5">
<span aria-hidden="true" class="flex size-9 shrink-0 items-center justify-center rounded-xl bg-fuchsia-100 text-fuchsia-700"><svg class="size-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3a9 9 0 1 0 9 9M12 3v4M21 12h-4M12 12l5-5"/></svg></span>
<div class="min-w-0 flex-1"><p id="pref-motion-label" class="text-sm font-semibold text-aeblack-900">Reduce motion</p><p id="pref-motion-hint" class="text-xs text-aeblack-600">Turn off animations and moving effects.</p></div>
<aegov-toggle data-pref="motion" name="motion" aria-labelledby="pref-motion-label" aria-describedby="pref-motion-hint" variant="neutral-max"></aegov-toggle>
</div>
</div>
</section>
<section aria-labelledby="pref-region" class="space-y-2">
<h3 id="pref-region" class="px-1 text-xs font-semibold tracking-wide text-aeblack-600 uppercase">Language and region</h3>
<div class="divide-y divide-aeblack-100 rounded-2xl bg-white shadow-xs ring-1 ring-aeblack-950/5">
<div class="flex flex-wrap items-center gap-3 px-4 py-3.5">
<span aria-hidden="true" class="flex size-9 shrink-0 items-center justify-center rounded-xl bg-techblue-100 text-techblue-700"><svg class="size-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m5 8 6 6M4 14l6-6 2-3M2 5h12M7 2h1M22 22l-5-10-5 10M14 18h6"/></svg></span>
<div class="min-w-0 flex-1"><p id="pref-language-label" class="text-sm font-semibold text-aeblack-900">Language</p><p class="text-xs text-aeblack-600">Also sets the reading direction.</p></div>
<aegov-select data-pref="language" field-id="pref-language" name="language" value="en" variant="neutral-min" size="sm" aria-labelledby="pref-language-label" class="block w-full sm:w-36">
<aegov-select-option value="en">English</aegov-select-option>
<aegov-select-option value="ar">العربية</aegov-select-option>
</aegov-select>
</div>
<div class="p-4">
<aegov-radio-group data-pref="date" name="date" label="Date format" appearance="pills" orientation="horizontal" variant="neutral-max" size="sm" class="block">
<aegov-radio value="numeric" label="16/11/2026" is-checked="true"></aegov-radio>
<aegov-radio value="long" label="16 November 2026"></aegov-radio>
</aegov-radio-group>
</div>
<div class="p-4">
<aegov-radio-group data-pref="time" name="time" label="Time format" appearance="pills" orientation="horizontal" variant="neutral-max" size="sm" class="block">
<aegov-radio value="24" label="24-hour" is-checked="true"></aegov-radio>
<aegov-radio value="12" label="12-hour"></aegov-radio>
</aegov-radio-group>
</div>
<div class="p-4">
<aegov-radio-group data-pref="numerals" name="numerals" label="Numbers" appearance="pills" orientation="horizontal" variant="neutral-max" size="sm" class="block">
<aegov-radio value="latn" label="Western 123" is-checked="true"></aegov-radio>
<aegov-radio value="arab" label="Arabic ١٢٣"></aegov-radio>
</aegov-radio-group>
</div>
</div>
</section>
<section aria-labelledby="pref-notifications" class="space-y-2">
<h3 id="pref-notifications" class="px-1 text-xs font-semibold tracking-wide text-aeblack-600 uppercase">Notifications</h3>
<div class="divide-y divide-aeblack-100 rounded-2xl bg-white shadow-xs ring-1 ring-aeblack-950/5">
<div class="flex items-center gap-3 px-4 py-3.5">
<span aria-hidden="true" class="flex size-9 shrink-0 items-center justify-center rounded-xl bg-seablue-100 text-seablue-700"><svg class="size-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="4" width="20" height="16" rx="2"/><path d="m22 7-10 6L2 7"/></svg></span>
<div class="min-w-0 flex-1"><p id="pref-email-label" class="text-sm font-semibold text-aeblack-900">Email</p><p id="pref-email-hint" class="text-xs text-aeblack-600">Every update about your applications.</p></div>
<aegov-toggle data-pref="email" name="email" aria-labelledby="pref-email-label" aria-describedby="pref-email-hint" variant="neutral-max" is-checked="true"></aegov-toggle>
</div>
<div class="flex items-center gap-3 px-4 py-3.5">
<span aria-hidden="true" class="flex size-9 shrink-0 items-center justify-center rounded-xl bg-aegreen-100 text-aegreen-700"><svg class="size-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg></span>
<div class="min-w-0 flex-1"><p id="pref-sms-label" class="text-sm font-semibold text-aeblack-900">SMS</p><p id="pref-sms-hint" class="text-xs text-aeblack-600">Only urgent updates, such as a missing document.</p></div>
<aegov-toggle data-pref="sms" name="sms" aria-labelledby="pref-sms-label" aria-describedby="pref-sms-hint" variant="neutral-max"></aegov-toggle>
</div>
<div class="flex items-center gap-3 px-4 py-3.5">
<span aria-hidden="true" class="flex size-9 shrink-0 items-center justify-center rounded-xl bg-camel-100 text-camel-700"><svg class="size-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9M10.3 21a1.94 1.94 0 0 0 3.4 0"/></svg></span>
<div class="min-w-0 flex-1"><p id="pref-reminders-label" class="text-sm font-semibold text-aeblack-900">Expiry reminders</p><p id="pref-reminders-hint" class="text-xs text-aeblack-600">30 days before a licence or permit expires.</p></div>
<aegov-toggle data-pref="reminders" name="reminders" aria-labelledby="pref-reminders-label" aria-describedby="pref-reminders-hint" variant="neutral-max" is-checked="true"></aegov-toggle>
</div>
</div>
</section>
</div>
<div class="sticky bottom-0 z-10 border-t border-aeblack-100 bg-whitely-50/90 px-5 py-4 shadow-[0_-8px_24px_-12px_rgb(0_0_0/0.12)] backdrop-blur sm:px-6">
<div class="flex items-center justify-between gap-3">
<p data-pref-changes role="status" class="flex items-center gap-2 text-xs text-aeblack-600 sm:text-sm"><span data-pref-dot aria-hidden="true" class="hidden size-2 rounded-full bg-aegold-500 ring-4 ring-aegold-100"></span><span data-pref-changes-text>No unsaved changes</span></p>
<aegov-button data-pref-reset appearance="link" variant="neutral-max" size="sm">Reset to defaults</aegov-button>
</div>
<div class="mt-3 grid grid-cols-2 gap-3">
<aegov-button data-pref-cancel variant="neutral-max" appearance="outline" size="base" is-full="true">Cancel</aegov-button>
<aegov-button data-pref-save variant="primary" size="base" is-full="true" is-disabled="true">Save</aegov-button>
</div>
</div>
</div>
</aegov-drawer>
<script>
// Preferences drawer. Every choice updates the preview straight away, the footer
// counts unsaved changes, and Save is enabled only when there is something to save.
// Closing without saving (Cancel, the close button, Escape or the backdrop) puts the
// saved choices back.
document.querySelectorAll('[data-preferences-open]').forEach((trigger) => {
const drawer = document.getElementById('preferences-drawer');
const form = drawer.querySelector('[data-preferences]');
const preview = form.querySelector('[data-pref-preview]');
const save = form.querySelector('[data-pref-save]');
const field = (name) => form.querySelector(`[data-pref="${name}"]`);
const sizeNames = ['Default', 'Large', 'Larger'];
const copy = {
en: { portal: 'Your services', greeting: 'Good morning, Mohammed', service: 'Trade licence renewal', updated: 'Updated' },
ar: { portal: 'خدماتك', greeting: 'صباح الخير، محمد', service: 'تجديد الرخصة التجارية', updated: 'آخر تحديث' },
};
const defaults = { theme: 'system', size: 0, motion: false, language: 'en', date: 'numeric', time: '24', numerals: 'latn', email: true, sms: false, reminders: true };
// Read and write each control the way its component exposes its value.
const radios = ['theme', 'date', 'time', 'numerals'];
const toggles = ['motion', 'email', 'sms', 'reminders'];
const read = () => {
const values = { size: Number(field('size').value), language: field('language').value };
radios.forEach((name) => { values[name] = [...field(name).querySelectorAll('aegov-radio')].find((radio) => radio.isChecked)?.value; });
toggles.forEach((name) => { values[name] = Boolean(field(name).isChecked); });
return values;
};
const write = (values) => {
field('size').value = values.size;
field('language').value = values.language;
radios.forEach((name) => field(name).querySelectorAll('aegov-radio').forEach((radio) => { radio.isChecked = radio.value === values[name]; }));
toggles.forEach((name) => { field(name).isChecked = values[name]; });
};
let saved;
const render = () => {
const values = read();
const dark = values.theme === 'dark' || (values.theme === 'system' && matchMedia('(prefers-color-scheme: dark)').matches);
preview.dataset.theme = dark ? 'dark' : 'light';
preview.dataset.size = values.size;
preview.dataset.motion = values.motion ? 'reduced' : 'full';
field('size').setAttribute('aria-valuetext', sizeNames[values.size]);
const isArabic = values.language === 'ar';
preview.lang = isArabic ? 'ar' : 'en';
preview.dir = isArabic ? 'rtl' : 'ltr';
preview.querySelectorAll('[data-preview-text]').forEach((node) => { node.textContent = copy[values.language][node.dataset.previewText]; });
const locale = `${isArabic ? 'ar-AE' : 'en-GB'}-u-nu-${values.numerals}`;
const sample = new Date(2026, 10, 16, 14, 30);
const dateStyle = values.date === 'long' ? { day: 'numeric', month: 'long', year: 'numeric' } : { day: '2-digit', month: '2-digit', year: 'numeric' };
preview.querySelector('[data-preview-date]').textContent = new Intl.DateTimeFormat(locale, dateStyle).format(sample);
preview.querySelector('[data-preview-time]').textContent = new Intl.DateTimeFormat(locale, { hour: 'numeric', minute: '2-digit', hour12: values.time === '12' }).format(sample);
preview.querySelector('[data-preview-fee]').textContent = new Intl.NumberFormat(locale, { style: 'currency', currency: 'AED', maximumFractionDigits: 0 }).format(1250);
if (!saved) return;
const changes = Object.keys(values).filter((key) => values[key] !== saved[key]).length;
form.querySelector('[data-pref-changes-text]').textContent = changes ? `${changes} unsaved ${changes === 1 ? 'change' : 'changes'}` : 'No unsaved changes';
form.querySelector('[data-pref-dot]').classList.toggle('hidden', !changes);
save.isDisabled = !changes;
};
['aegovRadioGroupChange', 'aegovRangeInput', 'aegovRangeChange', 'aegovToggleChange', 'aegovSelectChange'].forEach((type) => {
form.addEventListener(type, () => setTimeout(render));
});
// Float the drawer with a gap on larger screens; pin it flush to the edges on phones.
const wide = matchMedia('(min-width: 640px)');
const pin = () => drawer.setAttribute('is-pinned', String(!wide.matches));
pin();
wide.addEventListener('change', pin);
trigger.addEventListener('click', () => drawer.show());
form.querySelector('[data-preferences-close]').addEventListener('click', () => drawer.close());
form.querySelector('[data-pref-cancel]').addEventListener('click', () => drawer.close());
form.querySelector('[data-pref-reset]').addEventListener('click', () => { write(defaults); setTimeout(render); });
save.addEventListener('click', () => {
// Example only: send read() to your preferences endpoint here.
saved = read();
drawer.close();
});
drawer.addEventListener('aegovDrawerClose', () => { write(saved); setTimeout(render); });
Promise.all(['aegov-radio', 'aegov-toggle', 'aegov-range', 'aegov-select'].map((tag) => customElements.whenDefined(tag))).then(() => {
setTimeout(() => { saved = read(); render(); });
});
});
</script>
Uses the UAE Design System web components. Load the theme, base CSS and component loader first. See installation.
Drawer Example 02
An applicant profile in a floating drawer, opened from a list: who they are and how to reach them, the application at a glance, then the details grouped into short cards and the uploaded documents with their status. Previous and next move through the list without closing the drawer.
Drawer Example 02
<div class="min-h-[max(100dvh,52rem)] bg-aeblack-50 px-4 py-6 sm:px-8 lg:px-12 lg:py-10">
<div class="mx-auto max-w-5xl">
<div role="img" aria-label="Logo" class="relative flex h-10 w-32 items-center justify-center overflow-hidden rounded-lg border-2 border-dashed border-aeblack-200 bg-white">
<svg aria-hidden="true" class="absolute inset-0 size-full text-aeblack-200" preserveAspectRatio="none" viewBox="0 0 100 100" fill="none"><line x1="0" y1="0" x2="100" y2="100" stroke="currentColor" stroke-width="1" vector-effect="non-scaling-stroke"/><line x1="100" y1="0" x2="0" y2="100" stroke="currentColor" stroke-width="1" vector-effect="non-scaling-stroke"/></svg>
<span aria-hidden="true" class="relative rounded bg-white px-2 text-sm font-semibold text-aeblack-500">Logo</span>
</div>
<h2 class="mt-10 text-h5 sm:text-h4 text-aeblack-800">Passport renewals</h2>
<ul class="mt-6 divide-y divide-aeblack-100 rounded-2xl bg-white ring-1 ring-aeblack-950/5">
<li class="flex items-center justify-between gap-4 p-4">
<div class="min-w-0"><p class="text-xs text-aeblack-600">#7781</p><p class="truncate text-base font-semibold text-aeblack-800">Mohammed Al Mansouri</p></div>
<aegov-button data-applicant-open variant="neutral-max" appearance="outline" size="sm">View</aegov-button>
</li>
<li aria-hidden="true" class="flex items-center justify-between gap-4 p-4"><div class="w-full max-w-xs space-y-2"><div class="h-2.5 w-12 rounded-full bg-aeblack-100"></div><div class="h-3.5 w-3/4 rounded-full bg-aeblack-100"></div></div><div class="h-8 w-14 shrink-0 rounded-lg bg-aeblack-100"></div></li>
<li aria-hidden="true" class="flex items-center justify-between gap-4 p-4"><div class="w-full max-w-xs space-y-2"><div class="h-2.5 w-12 rounded-full bg-aeblack-100"></div><div class="h-3.5 w-2/3 rounded-full bg-aeblack-100"></div></div><div class="h-8 w-14 shrink-0 rounded-lg bg-aeblack-100"></div></li>
</ul>
</div>
</div>
<aegov-drawer id="applicant-drawer" position="right" size="base" is-pinned="false" is-padding="false" label="Applicant details">
<div data-applicant class="flex min-h-full flex-col text-aeblack-800">
<div class="sticky top-0 z-10 flex items-center justify-between gap-2 border-b border-aeblack-100 bg-whitely-50 px-5 py-3 sm:px-6">
<h2 class="text-base font-semibold text-aeblack-900 max-sm:sr-only">Applicant details</h2>
<div class="ms-auto flex items-center gap-1">
<aegov-button data-applicant-step="-1" appearance="outline" variant="neutral-min" size="sm" is-icon="true" aria-label="Previous applicant">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="rtl:-scale-x-100"><path d="m15 18-6-6 6-6"/></svg>
</aegov-button>
<aegov-button data-applicant-step="1" appearance="outline" variant="neutral-min" size="sm" is-icon="true" aria-label="Next applicant">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="rtl:-scale-x-100"><path d="m9 18 6-6-6-6"/></svg>
</aegov-button>
<p data-applicant-position aria-live="polite" class="mx-2 text-sm tabular-nums text-aeblack-600"><span class="font-semibold text-aeblack-900">1</span> of 3</p>
<span aria-hidden="true" class="h-5 w-px bg-aeblack-100"></span>
<aegov-button data-applicant-close appearance="link" variant="neutral-max" size="sm" is-icon="true" aria-label="Close applicant details">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18M6 6l12 12"/></svg>
</aegov-button>
</div>
</div>
<div class="flex-1 space-y-6 px-5 py-6 sm:px-6">
<div class="flex items-start gap-4">
<aegov-avatar data-field-avatar src="/storage/blocks/team/person-1.webp" alt="" size="lg" appearance="rounded"></aegov-avatar>
<div class="min-w-0 flex-1">
<h3 data-field="name" class="text-lg font-bold text-aeblack-900">Mohammed Al Mansouri</h3>
<p class="text-xs text-aeblack-600">Applicant ID <span data-field="id" class="font-semibold text-aeblack-800">#7781</span></p>
<div class="mt-3 flex flex-wrap gap-2">
<a data-field-email href="mailto:mohammed.almansouri@example.ae" class="inline-flex min-h-7 max-w-full items-center gap-1.5 rounded-full bg-aeblack-50 px-2.5 text-xs font-medium text-aeblack-800 ring-1 ring-aeblack-100 hover:bg-aeblack-100">
<svg aria-hidden="true" class="size-3.5 shrink-0" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="4" width="20" height="16" rx="2"/><path d="m22 7-10 6L2 7"/></svg>
<span data-field="email" class="truncate">mohammed.almansouri@example.ae</span>
</a>
<a data-field-phone href="tel:+971501234567" dir="ltr" class="inline-flex min-h-7 items-center gap-1.5 rounded-full bg-aeblack-50 px-2.5 text-xs font-medium tabular-nums text-aeblack-800 ring-1 ring-aeblack-100 hover:bg-aeblack-100">
<svg aria-hidden="true" class="size-3.5 shrink-0" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.8 19.8 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.12 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z"/></svg>
<span data-field="phone">+971 50 123 4567</span>
</a>
</div>
</div>
<aegov-button data-applicant-favourite appearance="link" variant="neutral-max" size="sm" is-icon="true" aria-label="Favourite" aria-pressed="false">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m12 2 3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01z"/></svg>
</aegov-button>
</div>
<dl class="grid grid-cols-3 divide-x divide-aeblack-100 rounded-2xl ring-1 ring-aeblack-100 rtl:divide-x-reverse">
<div class="min-w-0 p-3 sm:p-4"><dt class="text-xs text-aeblack-600">Application</dt><dd data-field="application" class="mt-1 text-sm font-semibold text-aeblack-900">PR-48213</dd></div>
<div class="min-w-0 p-3 sm:p-4"><dt class="text-xs text-aeblack-600">Status</dt><dd class="mt-1"><aegov-badge data-field-status variant="aegreen" size="sm">Issued</aegov-badge></dd></div>
<div class="min-w-0 p-3 sm:p-4"><dt class="text-xs text-aeblack-600">Submitted</dt><dd data-field="submitted" class="mt-1 text-sm font-semibold text-aeblack-900">20 Oct 2026</dd></div>
</dl>
<aegov-tabs variant="segmented" is-stretchable="true" label-tablist="Applicant information" size="sm sm:base" class="block">
<aegov-tab slot="tabs" tab-id="details">Details</aegov-tab>
<aegov-tab slot="tabs" tab-id="documents">Documents</aegov-tab>
<aegov-tab-panel tab-id="details">
<div class="space-y-4">
<section aria-labelledby="applicant-personal" class="rounded-2xl ring-1 ring-aeblack-100">
<h4 id="applicant-personal" class="flex items-center gap-2 border-b border-aeblack-100 px-4 py-3 text-sm font-semibold text-aeblack-900"><svg aria-hidden="true" class="size-4 text-aeblack-600" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="8" r="4"/><path d="M4 21a8 8 0 0 1 16 0"/></svg>Personal</h4>
<dl class="divide-y divide-aeblack-100 px-4">
<div class="grid gap-0.5 py-3 sm:grid-cols-[10rem_minmax(0,1fr)] sm:gap-4"><dt class="text-xs text-aeblack-600 sm:text-sm">Surname</dt><dd data-field="surname" class="text-sm font-medium text-aeblack-900">AL MANSOURI</dd></div>
<div class="grid gap-0.5 py-3 sm:grid-cols-[10rem_minmax(0,1fr)] sm:gap-4"><dt class="text-xs text-aeblack-600 sm:text-sm">Given names</dt><dd data-field="given" class="text-sm font-medium text-aeblack-900">MOHAMMED AHMED</dd></div>
<div class="grid gap-0.5 py-3 sm:grid-cols-[10rem_minmax(0,1fr)] sm:gap-4"><dt class="text-xs text-aeblack-600 sm:text-sm">Sex</dt><dd data-field="sex" class="text-sm font-medium text-aeblack-900">Male</dd></div>
<div class="grid gap-0.5 py-3 sm:grid-cols-[10rem_minmax(0,1fr)] sm:gap-4"><dt class="text-xs text-aeblack-600 sm:text-sm">Date of birth</dt><dd data-field="dob" class="text-sm font-medium text-aeblack-900">1 January 1990</dd></div>
<div class="grid gap-0.5 py-3 sm:grid-cols-[10rem_minmax(0,1fr)] sm:gap-4"><dt class="text-xs text-aeblack-600 sm:text-sm">Place of birth</dt><dd data-field="birthplace" class="text-sm font-medium text-aeblack-900">Dubai</dd></div>
<div class="grid gap-0.5 py-3 sm:grid-cols-[10rem_minmax(0,1fr)] sm:gap-4"><dt class="text-xs text-aeblack-600 sm:text-sm">Nationality</dt><dd class="text-sm font-medium text-aeblack-900">Emirati</dd></div>
</dl>
</section>
<section aria-labelledby="applicant-current" class="rounded-2xl ring-1 ring-aeblack-100">
<h4 id="applicant-current" class="flex items-center gap-2 border-b border-aeblack-100 px-4 py-3 text-sm font-semibold text-aeblack-900"><svg aria-hidden="true" class="size-4 text-aeblack-600" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="4" y="2" width="16" height="20" rx="2"/><circle cx="12" cy="10" r="3"/><path d="M8 17h8"/></svg>Current passport</h4>
<dl class="divide-y divide-aeblack-100 px-4">
<div class="grid gap-0.5 py-3 sm:grid-cols-[10rem_minmax(0,1fr)] sm:gap-4"><dt class="text-xs text-aeblack-600 sm:text-sm">Passport number</dt><dd data-field="passport" class="text-sm font-medium tabular-nums text-aeblack-900">P1234567</dd></div>
<div class="grid gap-0.5 py-3 sm:grid-cols-[10rem_minmax(0,1fr)] sm:gap-4"><dt class="text-xs text-aeblack-600 sm:text-sm">Expires</dt><dd data-field="expires" class="text-sm font-medium text-aeblack-900">3 November 2026</dd></div>
</dl>
</section>
<section aria-labelledby="applicant-new" class="rounded-2xl ring-1 ring-aeblack-100">
<h4 id="applicant-new" class="flex items-center gap-2 border-b border-aeblack-100 px-4 py-3 text-sm font-semibold text-aeblack-900"><svg aria-hidden="true" class="size-4 text-aeblack-600" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3v12M7 10l5 5 5-5M5 21h14"/></svg>New passport</h4>
<dl class="divide-y divide-aeblack-100 px-4">
<div class="grid gap-0.5 py-3 sm:grid-cols-[10rem_minmax(0,1fr)] sm:gap-4"><dt class="text-xs text-aeblack-600 sm:text-sm">Issuing office</dt><dd data-field="office" class="text-sm font-medium text-aeblack-900">Dubai</dd></div>
<div class="grid gap-0.5 py-3 sm:grid-cols-[10rem_minmax(0,1fr)] sm:gap-4"><dt class="text-xs text-aeblack-600 sm:text-sm">Control number</dt><dd data-field="control" class="text-sm font-medium tabular-nums text-aeblack-900">20261234567890</dd></div>
<div class="grid gap-0.5 py-3 sm:grid-cols-[10rem_minmax(0,1fr)] sm:gap-4"><dt class="text-xs text-aeblack-600 sm:text-sm">Issue date</dt><dd data-field="issued" class="text-sm font-medium text-aeblack-900">15 November 2026</dd></div>
<div class="grid gap-0.5 py-3 sm:grid-cols-[10rem_minmax(0,1fr)] sm:gap-4"><dt class="text-xs text-aeblack-600 sm:text-sm">Expiry date</dt><dd data-field="expiry" class="text-sm font-medium text-aeblack-900">14 November 2031</dd></div>
<div class="grid gap-0.5 py-3 sm:grid-cols-[10rem_minmax(0,1fr)] sm:gap-4"><dt class="text-xs text-aeblack-600 sm:text-sm">Note</dt><dd data-field="note" class="text-sm font-medium text-aeblack-900">Ready for collection</dd></div>
</dl>
</section>
</div>
</aegov-tab-panel>
<aegov-tab-panel tab-id="documents">
<ul class="divide-y divide-aeblack-100 rounded-2xl ring-1 ring-aeblack-100">
<li class="flex items-center gap-3 p-4">
<span aria-hidden="true" class="flex size-10 shrink-0 items-center justify-center rounded-xl bg-aeblack-50 text-xs font-semibold text-aeblack-700">PDF</span>
<div class="min-w-0 flex-1"><p class="truncate text-sm font-semibold text-aeblack-900">Current passport</p><p class="text-xs text-aeblack-600">1.2 MB</p></div>
<aegov-badge data-doc-status="passport" variant="aegreen" size="sm">Verified</aegov-badge>
<aegov-link href="#download" appearance="link" variant="neutral-max" size="sm" is-icon="true" aria-label="Download current passport"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3v12M7 10l5 5 5-5M5 21h14"/></svg></aegov-link>
</li>
<li class="flex items-center gap-3 p-4">
<span aria-hidden="true" class="flex size-10 shrink-0 items-center justify-center rounded-xl bg-aeblack-50 text-xs font-semibold text-aeblack-700">PDF</span>
<div class="min-w-0 flex-1"><p class="truncate text-sm font-semibold text-aeblack-900">Emirates ID</p><p class="text-xs text-aeblack-600">640 KB</p></div>
<aegov-badge data-doc-status="id" variant="aegreen" size="sm">Verified</aegov-badge>
<aegov-link href="#download" appearance="link" variant="neutral-max" size="sm" is-icon="true" aria-label="Download Emirates ID"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3v12M7 10l5 5 5-5M5 21h14"/></svg></aegov-link>
</li>
<li class="flex items-center gap-3 p-4">
<span aria-hidden="true" class="flex size-10 shrink-0 items-center justify-center rounded-xl bg-aeblack-50 text-xs font-semibold text-aeblack-700">PDF</span>
<div class="min-w-0 flex-1"><p class="truncate text-sm font-semibold text-aeblack-900">Family book extract</p><p class="text-xs text-aeblack-600">2.4 MB</p></div>
<aegov-badge data-doc-status="family" variant="aegreen" size="sm">Verified</aegov-badge>
<aegov-link href="#download" appearance="link" variant="neutral-max" size="sm" is-icon="true" aria-label="Download family book extract"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3v12M7 10l5 5 5-5M5 21h14"/></svg></aegov-link>
</li>
<li class="flex items-center gap-3 p-4">
<span aria-hidden="true" class="flex size-10 shrink-0 items-center justify-center rounded-xl bg-aeblack-50 text-xs font-semibold text-aeblack-700">JPG</span>
<div class="min-w-0 flex-1"><p class="truncate text-sm font-semibold text-aeblack-900">Personal photo</p><p class="text-xs text-aeblack-600">380 KB</p></div>
<aegov-badge data-doc-status="photo" variant="aegreen" size="sm">Verified</aegov-badge>
<aegov-link href="#download" appearance="link" variant="neutral-max" size="sm" is-icon="true" aria-label="Download personal photo"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3v12M7 10l5 5 5-5M5 21h14"/></svg></aegov-link>
</li>
</ul>
</aegov-tab-panel>
</aegov-tabs>
</div>
</div>
</aegov-drawer>
<script>
// Applicant drawer: "View" opens it; previous and next move through the list and
// fill the same drawer with the next applicant. Each applicant can be marked as a
// favourite. The drawer floats with a gap on larger screens and is pinned on phones.
document.querySelectorAll('[data-applicant-open]').forEach((trigger) => {
const drawer = document.getElementById('applicant-drawer');
const panel = drawer.querySelector('[data-applicant]');
const statuses = {
issued: ['aegreen', 'Issued'],
review: ['aegold', 'In review'],
action: ['aered', 'Action needed'],
verified: ['aegreen', 'Verified'],
checking: ['aegold', 'Checking'],
update: ['aered', 'Needs update'],
};
const applicants = [
{ id: '#7781', name: 'Mohammed Al Mansouri', avatar: '/storage/blocks/team/person-1.webp', email: 'mohammed.almansouri@example.ae', phone: '+971 50 123 4567', application: 'PR-48213', status: 'issued', submitted: '20 Oct 2026', surname: 'AL MANSOURI', given: 'MOHAMMED AHMED', sex: 'Male', dob: '1 January 1990', birthplace: 'Dubai', passport: 'P1234567', expires: '3 November 2026', office: 'Dubai', control: '20261234567890', issued: '15 November 2026', expiry: '14 November 2031', note: 'Ready for collection', docs: { passport: 'verified', id: 'verified', family: 'verified', photo: 'verified' } },
{ id: '#7782', name: 'Rashid Al Hakim', avatar: '/storage/blocks/team/person-2.webp', email: 'rashid.alhakim@example.ae', phone: '+971 55 234 5678', application: 'PR-48247', status: 'review', submitted: '2 Nov 2026', surname: 'AL HAKIM', given: 'RASHID KHALID', sex: 'Male', dob: '14 March 1987', birthplace: 'Abu Dhabi', passport: 'P2345678', expires: '20 December 2026', office: 'Abu Dhabi', control: '20261234567912', issued: 'Not issued yet', expiry: 'Not issued yet', note: 'Personal photo is being checked', docs: { passport: 'verified', id: 'verified', family: 'verified', photo: 'checking' } },
{ id: '#7783', name: 'Youssef Ibrahim', avatar: '/storage/blocks/team/person-3.webp', email: 'youssef.ibrahim@example.ae', phone: '+971 52 345 6789', application: 'PR-48302', status: 'action', submitted: '5 Nov 2026', surname: 'IBRAHIM', given: 'YOUSSEF ALI', sex: 'Male', dob: '9 August 1995', birthplace: 'Sharjah', passport: 'P3456789', expires: '2 January 2027', office: 'Sharjah', control: '20261234568034', issued: 'Not issued yet', expiry: 'Not issued yet', note: 'Upload a clearer personal photo', docs: { passport: 'verified', id: 'verified', family: 'checking', photo: 'update' } },
];
const favourites = new Set();
let current = 0;
// Swap in a fresh badge: a rendered aegov-badge doesn't pick up new text.
const setBadge = (badge, key) => {
const fresh = document.createElement('aegov-badge');
[...badge.attributes].forEach(({ name, value }) => { if (name !== 'class') fresh.setAttribute(name, value); });
fresh.setAttribute('variant', statuses[key][0]);
fresh.textContent = statuses[key][1];
badge.replaceWith(fresh);
};
const show = (index) => {
current = index;
const applicant = applicants[index];
panel.querySelectorAll('[data-field]').forEach((node) => { node.textContent = applicant[node.dataset.field]; });
panel.querySelector('[data-field-avatar]').setAttribute('src', applicant.avatar);
panel.querySelector('[data-field-email]').href = `mailto:${applicant.email}`;
panel.querySelector('[data-field-phone]').href = `tel:${applicant.phone.replace(/\s/g, '')}`;
setBadge(panel.querySelector('[data-field-status]'), applicant.status);
panel.querySelectorAll('[data-doc-status]').forEach((badge) => setBadge(badge, applicant.docs[badge.dataset.docStatus]));
panel.querySelector('[data-applicant-position]').innerHTML = `<span class="font-semibold text-aeblack-900">${index + 1}</span> of ${applicants.length}`;
panel.querySelector('[data-applicant-step="-1"]').isDisabled = index === 0;
panel.querySelector('[data-applicant-step="1"]').isDisabled = index === applicants.length - 1;
const favourite = panel.querySelector('[data-applicant-favourite]');
favourite.setAttribute('aria-pressed', String(favourites.has(applicant.id)));
favourite.querySelector('svg').setAttribute('fill', favourites.has(applicant.id) ? 'currentColor' : 'none');
};
// At the first or last applicant the pressed button turns disabled, so keep
// keyboard focus in the drawer by moving it to the other button.
const steps = [...panel.querySelectorAll('[data-applicant-step]')];
steps.forEach((button) => {
button.addEventListener('click', () => {
show(Math.min(applicants.length - 1, Math.max(0, current + Number(button.dataset.applicantStep))));
if (button.isDisabled) steps.find((other) => other !== button).setFocus();
});
});
panel.querySelector('[data-applicant-favourite]').addEventListener('click', () => {
const { id } = applicants[current];
favourites.has(id) ? favourites.delete(id) : favourites.add(id);
show(current);
});
const wide = matchMedia('(min-width: 640px)');
const pin = () => drawer.setAttribute('is-pinned', String(!wide.matches));
pin();
wide.addEventListener('change', pin);
trigger.addEventListener('click', () => { show(0); drawer.show(); });
panel.querySelector('[data-applicant-close]').addEventListener('click', () => drawer.close());
show(0);
});
</script>
Uses the UAE Design System web components. Load the theme, base CSS and component loader first. See installation.
Drawer Example 03
A cookie consent banner in a bottom drawer: why cookies are used, a link to the cookie policy, each kind of cookie with its own toggle, and three clear choices. It stays open until a choice is made, and it can be reopened from the footer.
Drawer Example 03
<div class="flex min-h-[max(100dvh,40rem)] flex-col bg-white">
<div class="flex items-center justify-between gap-4 border-b border-aeblack-100 px-4 py-3 sm:px-8">
<div role="img" aria-label="Logo" class="relative flex h-10 w-32 items-center justify-center overflow-hidden rounded-lg border-2 border-dashed border-aeblack-200 bg-white">
<svg aria-hidden="true" class="absolute inset-0 size-full text-aeblack-200" preserveAspectRatio="none" viewBox="0 0 100 100" fill="none"><line x1="0" y1="0" x2="100" y2="100" stroke="currentColor" stroke-width="1" vector-effect="non-scaling-stroke"/><line x1="100" y1="0" x2="0" y2="100" stroke="currentColor" stroke-width="1" vector-effect="non-scaling-stroke"/></svg>
<span aria-hidden="true" class="relative rounded bg-white px-2 text-sm font-semibold text-aeblack-500">Logo</span>
</div>
<div aria-hidden="true" class="hidden gap-6 sm:flex"><div class="h-3 w-16 rounded-full bg-aeblack-100"></div><div class="h-3 w-16 rounded-full bg-aeblack-100"></div><div class="h-3 w-16 rounded-full bg-aeblack-100"></div></div>
</div>
<div aria-hidden="true" class="mx-auto w-full max-w-5xl flex-1 px-4 py-10 sm:px-8">
<div class="h-6 w-72 max-w-full rounded-full bg-aeblack-200"></div>
<div class="mt-4 space-y-2"><div class="h-3 w-full rounded-full bg-aeblack-100"></div><div class="h-3 w-5/6 rounded-full bg-aeblack-100"></div><div class="h-3 w-2/3 rounded-full bg-aeblack-100"></div></div>
<div class="mt-8 grid gap-4 sm:grid-cols-3"><div class="h-28 rounded-2xl bg-aeblack-50"></div><div class="h-28 rounded-2xl bg-aeblack-50"></div><div class="h-28 rounded-2xl bg-aeblack-50"></div></div>
</div>
<div class="border-t border-aeblack-100 bg-aeblack-50 px-4 py-5 sm:px-8">
<div class="mx-auto flex max-w-5xl flex-wrap items-center justify-between gap-4">
<div aria-hidden="true" class="flex gap-6"><div class="h-3 w-20 rounded-full bg-aeblack-200"></div><div class="h-3 w-20 rounded-full bg-aeblack-200"></div></div>
<aegov-button data-cookies-open appearance="link" variant="neutral-max" size="sm">Cookie settings</aegov-button>
</div>
</div>
</div>
<aegov-drawer id="cookies-drawer" position="bottom" is-padding="false" is-close-with-overlay="false" overlay-opacity="light" label="Cookie preferences">
<div class="border-t-4 border-primary-500 bg-primary-50">
<div class="aegov-container grid gap-5 py-5 sm:gap-8 sm:py-8 lg:grid-cols-12">
<div class="space-y-3 lg:col-span-5">
<div class="flex items-center gap-3">
<span class="grid size-11 shrink-0 place-items-center rounded-full bg-white text-primary-600 ring-1 ring-primary-100">
<svg aria-hidden="true" class="size-6" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5"/><path d="M8.5 8.5v.01M16 15.5v.01M12 12v.01M11 17v.01M7 14v.01"/></svg>
</span>
<h2 class="text-h5 sm:text-h4">We value your privacy</h2>
</div>
<p class="text-sm text-aeblack-700 sm:text-base">We use cookies to keep you signed in and to improve our services. Necessary cookies are always on; the others are up to you.</p>
<aegov-link href="#cookie-policy">Read our cookie policy</aegov-link>
</div>
<ul role="list" class="divide-y divide-primary-100 rounded-xl bg-white ring-1 ring-primary-100 lg:col-span-7">
<li class="flex items-center justify-between gap-4 px-4 py-3 sm:gap-6 sm:px-5 sm:py-4">
<div>
<p class="text-sm font-semibold sm:text-base">Strictly necessary</p>
<p class="text-xs text-aeblack-600 sm:text-sm">Sign-in, security and your language.</p>
</div>
<aegov-badge variant="aegreen" size="sm" class="shrink-0">Always on</aegov-badge>
</li>
<li class="flex items-center justify-between gap-4 px-4 py-3 sm:gap-6 sm:px-5 sm:py-4">
<div>
<p class="text-sm font-semibold sm:text-base">Analytics</p>
<p class="text-xs text-aeblack-600 sm:text-sm">Anonymous statistics on which pages people use.</p>
</div>
<aegov-toggle data-cookie="analytics" aria-label="Allow analytics cookies"></aegov-toggle>
</li>
<li class="flex items-center justify-between gap-4 px-4 py-3 sm:gap-6 sm:px-5 sm:py-4">
<div>
<p class="text-sm font-semibold sm:text-base">Preferences</p>
<p class="text-xs text-aeblack-600 sm:text-sm">Remember text size and saved services.</p>
</div>
<aegov-toggle data-cookie="preferences" aria-label="Allow preference cookies"></aegov-toggle>
</li>
</ul>
</div>
<div class="border-t border-primary-100">
<div class="aegov-container flex flex-wrap items-center justify-between gap-4 py-4">
<p class="text-xs text-aeblack-600 sm:text-sm">You can change your choice any time from the footer.</p>
<div class="grid w-full gap-2 sm:flex sm:w-auto sm:flex-wrap sm:gap-3">
<aegov-button data-cookies-choice="reject" appearance="outline" size="sm sm:base" is-full="true">Reject optional</aegov-button>
<aegov-button data-cookies-choice="save" appearance="outline" size="sm sm:base" is-full="true">Save my choices</aegov-button>
<aegov-button data-cookies-choice="accept" size="sm sm:base" is-full="true">Accept all</aegov-button>
</div>
</div>
</div>
</div>
</aegov-drawer>
<script>
// Cookie consent. The banner can't be dismissed by clicking outside it: a choice
// has to be made. "Reject optional" and "Accept all" set every optional toggle
// before closing; "Save my choices" keeps the toggles as they are. "Cookie
// settings" in the footer opens the banner again with the saved choices.
document.querySelectorAll('[data-cookies-open]').forEach((trigger) => {
const drawer = document.getElementById('cookies-drawer');
const toggles = [...drawer.querySelectorAll('[data-cookie]')];
trigger.addEventListener('click', () => drawer.show());
drawer.querySelectorAll('[data-cookies-choice]').forEach((button) => {
button.addEventListener('click', () => {
const choice = button.dataset.cookiesChoice;
if (choice !== 'save') {
toggles.forEach((toggle) => { toggle.isChecked = choice === 'accept'; });
}
// Example only: store { analytics, preferences } from the toggles here.
drawer.close();
});
});
});
</script>
Uses the UAE Design System web components. Load the theme, base CSS and component loader first. See installation.
Drawer Example 04
Mobile navigation in a left drawer: search and quick actions first, then the main sections. Sections with more pages slide in as their own panel with a way back, and a help card with contact options and the language, accessibility and theme switches sit at the bottom.
Drawer Example 04
<div class="min-h-[max(100dvh,52rem)] bg-white">
<div class="flex items-center justify-between gap-4 border-b border-aeblack-100 px-4 py-3 sm:px-8">
<div role="img" aria-label="Logo" class="relative flex h-10 w-32 items-center justify-center overflow-hidden rounded-lg border-2 border-dashed border-aeblack-200 bg-white">
<svg aria-hidden="true" class="absolute inset-0 size-full text-aeblack-200" preserveAspectRatio="none" viewBox="0 0 100 100" fill="none"><line x1="0" y1="0" x2="100" y2="100" stroke="currentColor" stroke-width="1" vector-effect="non-scaling-stroke"/><line x1="100" y1="0" x2="0" y2="100" stroke="currentColor" stroke-width="1" vector-effect="non-scaling-stroke"/></svg>
<span aria-hidden="true" class="relative rounded bg-white px-2 text-sm font-semibold text-aeblack-500">Logo</span>
</div>
<aegov-button data-menu-open variant="neutral-max" appearance="outline" size="base">
<svg class="" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="20"><line x1="40" y1="128" x2="216" y2="128"/><line x1="40" y1="64" x2="216" y2="64"/><line x1="40" y1="192" x2="216" y2="192"/></svg>
Menu
</aegov-button>
</div>
<div aria-hidden="true" class="mx-auto max-w-5xl px-4 py-10 sm:px-8">
<div class="h-6 w-72 max-w-full rounded-full bg-aeblack-200"></div>
<div class="mt-4 space-y-2"><div class="h-3 w-full rounded-full bg-aeblack-100"></div><div class="h-3 w-4/5 rounded-full bg-aeblack-100"></div></div>
<div class="mt-8 h-48 rounded-2xl bg-aeblack-50"></div>
<div class="mt-4 grid gap-4 sm:grid-cols-3"><div class="h-28 rounded-2xl bg-aeblack-50"></div><div class="h-28 rounded-2xl bg-aeblack-50"></div><div class="h-28 rounded-2xl bg-aeblack-50"></div></div>
</div>
</div>
<aegov-drawer id="menu-drawer" position="left" size="sm" is-padding="false" label="Main menu">
<div data-mobile-menu class="flex min-h-full flex-col gap-6 px-5 pb-6 text-start">
<div class="sticky top-0 z-10 -mx-5 flex items-center justify-between gap-4 bg-whitely-50 px-5 py-4">
<div role="img" aria-label="Logo" class="relative flex h-10 w-32 items-center justify-center overflow-hidden rounded-lg border-2 border-dashed border-aeblack-200 bg-white">
<svg aria-hidden="true" class="absolute inset-0 size-full text-aeblack-200" preserveAspectRatio="none" viewBox="0 0 100 100" fill="none"><line x1="0" y1="0" x2="100" y2="100" stroke="currentColor" stroke-width="1" vector-effect="non-scaling-stroke"/><line x1="100" y1="0" x2="0" y2="100" stroke="currentColor" stroke-width="1" vector-effect="non-scaling-stroke"/></svg>
<span aria-hidden="true" class="relative rounded bg-white px-2 text-sm font-semibold text-aeblack-500">Logo</span>
</div>
<aegov-button data-menu-close appearance="link" variant="neutral-max" size="sm" is-icon="true" aria-label="Close menu">
<svg class="" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="20"><line x1="200" y1="56" x2="56" y2="200"/><line x1="200" y1="200" x2="56" y2="56"/></svg>
</aegov-button>
</div>
<div class="flex flex-col gap-3">
<a href="#search" class="flex w-full flex-nowrap items-center gap-3 rounded-2xl bg-aeblack-50 px-4 py-3.5 text-start no-underline ring-1 ring-aeblack-100 transition hover:ring-primary-200">
<svg class="size-5 shrink-0 text-primary-600" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="20"><circle cx="112" cy="112" r="80"/><line x1="168.57" y1="168.57" x2="224" y2="224"/></svg>
<span class="grow font-medium text-aeblack-600">Search the site…</span>
</a>
<ul role="list" class="grid grid-cols-3 gap-2"><li><a href="#login" class="flex h-full w-full flex-col flex-nowrap items-start gap-2 rounded-xl bg-white p-3 text-start text-sm font-semibold text-aeblack-800 no-underline ring-1 ring-aeblack-100 transition-colors hover:bg-primary-50 hover:ring-primary-200"><span class="grid size-8 place-items-center rounded-lg bg-primary-50 text-primary-700"><svg class="size-4" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="20"><circle cx="128" cy="96" r="56"/><path d="M32,216c19.37-33.47,54.55-56,96-56s76.63,22.53,96,56"/></svg></span>UAE PASS login</a></li><li><a href="#assistant" class="flex h-full w-full flex-col flex-nowrap items-start gap-2 rounded-xl bg-white p-3 text-start text-sm font-semibold text-aeblack-800 no-underline ring-1 ring-aeblack-100 transition-colors hover:bg-primary-50 hover:ring-primary-200"><span class="grid size-8 place-items-center rounded-lg bg-primary-50 text-primary-700"><svg class="size-4" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="20"><path d="M128,32l20,52,52,20-52,20-20,52-20-52L56,104l52-20Z"/><path d="M200,168l8,20,20,8-20,8-8,20-8-20-20-8,20-8Z"/></svg></span>Ask AI</a></li><li><a href="#track" class="flex h-full w-full flex-col flex-nowrap items-start gap-2 rounded-xl bg-white p-3 text-start text-sm font-semibold text-aeblack-800 no-underline ring-1 ring-aeblack-100 transition-colors hover:bg-primary-50 hover:ring-primary-200"><span class="grid size-8 place-items-center rounded-lg bg-primary-50 text-primary-700"><svg class="size-4" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="20"><path d="M200,176V64a24,24,0,0,0-24-24H40"/><line x1="104" y1="104" x2="168" y2="104"/><line x1="104" y1="136" x2="168" y2="136"/><path d="M24,80s-8-6-8-16a24,24,0,0,1,48,0V192a24,24,0,0,0,48,0c0-10-8-16-8-16H216s8,6,8,16a24,24,0,0,1-24,24H88"/></svg></span>Track application</a></li></ul>
</div>
<nav aria-label="Main navigation" class="overflow-clip">
<div data-mm-stack class="grid grid-cols-[minmax(0,1fr)] transition-[height] duration-300 ease-out motion-reduce:transition-none">
<div id="mm-root" data-mm-panel data-mm-root data-state="active" class="col-start-1 row-start-1 self-start transition-[translate,opacity] duration-300 ease-out motion-reduce:transition-none data-[state=active]:translate-x-0 data-[state=active]:opacity-100 data-[state=prev]:-translate-x-1/4 data-[state=prev]:opacity-0 data-[state=next]:translate-x-full data-[state=next]:opacity-0 rtl:data-[state=prev]:translate-x-1/4 rtl:data-[state=next]:-translate-x-full">
<ul role="list" class="flex flex-col gap-0.5"><li><a href="#home" aria-current="page" class="group relative flex w-full flex-nowrap items-center gap-3.5 rounded-xl px-2 py-2.5 text-start no-underline transition-colors hover:bg-aeblack-50"><span aria-hidden="true" class="absolute inset-y-2.5 start-0 w-1 rounded-full bg-secondary-500"></span><span class="grid size-10 shrink-0 place-items-center rounded-xl bg-aeblack-50 text-aeblack-600 ring-1 ring-aeblack-100 transition-colors group-hover:bg-secondary-50 group-hover:text-secondary-600 group-hover:ring-secondary-200 group-aria-[current=page]:bg-secondary-50 group-aria-[current=page]:text-secondary-700 group-aria-[current=page]:ring-secondary-200"><svg class="size-5" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"><path d="M104,216V152h48v64h64V120a8,8,0,0,0-2.34-5.66l-80-80a8,8,0,0,0-11.32,0l-80,80A8,8,0,0,0,40,120v96Z"/></svg></span><span class="flex min-w-0 grow flex-col"><span class="font-semibold text-aeblack-800">Home</span><span class="truncate text-sm text-aeblack-600">Visit the homepage</span></span></a></li><li><button type="button" data-mm-open="mm-services" aria-expanded="false" aria-controls="mm-services" class="group relative flex w-full flex-nowrap items-center gap-3.5 rounded-xl px-2 py-2.5 text-start no-underline transition-colors hover:bg-aeblack-50"><span class="grid size-10 shrink-0 place-items-center rounded-xl bg-aeblack-50 text-aeblack-600 ring-1 ring-aeblack-100 transition-colors group-hover:bg-secondary-50 group-hover:text-secondary-600 group-hover:ring-secondary-200 group-aria-[current=page]:bg-secondary-50 group-aria-[current=page]:text-secondary-700 group-aria-[current=page]:ring-secondary-200"><svg class="size-5" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"><rect x="32" y="72" width="192" height="136" rx="8"/><path d="M168,72V56a16,16,0,0,0-16-16H104A16,16,0,0,0,88,56V72"/><line x1="32" y1="128" x2="224" y2="128"/></svg></span><span class="flex min-w-0 grow flex-col"><span class="font-semibold text-aeblack-800">Services</span><span class="truncate text-sm text-aeblack-600">Apply and get support</span></span><svg class="size-4 shrink-0 text-aeblack-400 rtl:-scale-x-100" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="20"><polyline points="96 48 176 128 96 208"/></svg></button></li><li><button type="button" data-mm-open="mm-participate" aria-expanded="false" aria-controls="mm-participate" class="group relative flex w-full flex-nowrap items-center gap-3.5 rounded-xl px-2 py-2.5 text-start no-underline transition-colors hover:bg-aeblack-50"><span class="grid size-10 shrink-0 place-items-center rounded-xl bg-aeblack-50 text-aeblack-600 ring-1 ring-aeblack-100 transition-colors group-hover:bg-secondary-50 group-hover:text-secondary-600 group-hover:ring-secondary-200 group-aria-[current=page]:bg-secondary-50 group-aria-[current=page]:text-secondary-700 group-aria-[current=page]:ring-secondary-200"><svg class="size-5" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"><path d="M79.93,211.11a96,96,0,1,0-35-35L32.42,213.46a8,8,0,0,0,10.12,10.12Z"/><line x1="96" y1="112" x2="160" y2="112"/><line x1="96" y1="144" x2="136" y2="144"/></svg></span><span class="flex min-w-0 grow flex-col"><span class="font-semibold text-aeblack-800">Have your say</span><span class="truncate text-sm text-aeblack-600">Consultations and surveys</span></span><svg class="size-4 shrink-0 text-aeblack-400 rtl:-scale-x-100" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="20"><polyline points="96 48 176 128 96 208"/></svg></button></li><li><a href="#open-data" class="group relative flex w-full flex-nowrap items-center gap-3.5 rounded-xl px-2 py-2.5 text-start no-underline transition-colors hover:bg-aeblack-50"><span class="grid size-10 shrink-0 place-items-center rounded-xl bg-aeblack-50 text-aeblack-600 ring-1 ring-aeblack-100 transition-colors group-hover:bg-secondary-50 group-hover:text-secondary-600 group-hover:ring-secondary-200 group-aria-[current=page]:bg-secondary-50 group-aria-[current=page]:text-secondary-700 group-aria-[current=page]:ring-secondary-200"><svg class="size-5" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"><path d="M224,208H32V48"/><polyline points="224 96 160 152 96 104 32 160"/></svg></span><span class="flex min-w-0 grow flex-col"><span class="font-semibold text-aeblack-800">Open data</span><span class="truncate text-sm text-aeblack-600">Statistics and datasets</span></span></a></li><li><button type="button" data-mm-open="mm-media" aria-expanded="false" aria-controls="mm-media" class="group relative flex w-full flex-nowrap items-center gap-3.5 rounded-xl px-2 py-2.5 text-start no-underline transition-colors hover:bg-aeblack-50"><span class="grid size-10 shrink-0 place-items-center rounded-xl bg-aeblack-50 text-aeblack-600 ring-1 ring-aeblack-100 transition-colors group-hover:bg-secondary-50 group-hover:text-secondary-600 group-hover:ring-secondary-200 group-aria-[current=page]:bg-secondary-50 group-aria-[current=page]:text-secondary-700 group-aria-[current=page]:ring-secondary-200"><svg class="size-5" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"><line x1="96" y1="112" x2="176" y2="112"/><line x1="96" y1="144" x2="176" y2="144"/><path d="M32,200a16,16,0,0,0,16-16V64a8,8,0,0,1,8-8H216a8,8,0,0,1,8,8V184a16,16,0,0,1-16,16Z"/><path d="M32,200a16,16,0,0,1-16-16V88"/></svg></span><span class="flex min-w-0 grow flex-col"><span class="font-semibold text-aeblack-800">Media</span><span class="truncate text-sm text-aeblack-600">News and events</span></span><svg class="size-4 shrink-0 text-aeblack-400 rtl:-scale-x-100" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="20"><polyline points="96 48 176 128 96 208"/></svg></button></li><li><button type="button" data-mm-open="mm-about" aria-expanded="false" aria-controls="mm-about" class="group relative flex w-full flex-nowrap items-center gap-3.5 rounded-xl px-2 py-2.5 text-start no-underline transition-colors hover:bg-aeblack-50"><span class="grid size-10 shrink-0 place-items-center rounded-xl bg-aeblack-50 text-aeblack-600 ring-1 ring-aeblack-100 transition-colors group-hover:bg-secondary-50 group-hover:text-secondary-600 group-hover:ring-secondary-200 group-aria-[current=page]:bg-secondary-50 group-aria-[current=page]:text-secondary-700 group-aria-[current=page]:ring-secondary-200"><svg class="size-5" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"><circle cx="128" cy="128" r="96"/><polyline points="120 120 128 120 128 176 136 176"/><circle cx="126" cy="84" r="6" fill="currentColor" stroke="none"/></svg></span><span class="flex min-w-0 grow flex-col"><span class="font-semibold text-aeblack-800">About</span><span class="truncate text-sm text-aeblack-600">Who we are</span></span><svg class="size-4 shrink-0 text-aeblack-400 rtl:-scale-x-100" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="20"><polyline points="96 48 176 128 96 208"/></svg></button></li></ul>
</div>
<section id="mm-services" data-mm-panel data-state="next" inert aria-labelledby="mm-services-heading" class="col-start-1 row-start-1 self-start transition-[translate,opacity] duration-300 ease-out motion-reduce:transition-none data-[state=active]:translate-x-0 data-[state=active]:opacity-100 data-[state=prev]:-translate-x-1/4 data-[state=prev]:opacity-0 data-[state=next]:translate-x-full data-[state=next]:opacity-0 rtl:data-[state=prev]:translate-x-1/4 rtl:data-[state=next]:-translate-x-full">
<button type="button" data-mm-back class="-ms-1 inline-flex flex-nowrap items-center gap-1.5 rounded-lg px-1 py-1 text-sm font-semibold text-primary-700 hover:text-primary-600"><svg class="size-4 rtl:-scale-x-100" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="20"><polyline points="160 208 80 128 160 48"/></svg>Main menu</button>
<div class="mt-3 mb-5 flex items-end justify-between gap-3 border-b border-aeblack-100 pb-4">
<h2 id="mm-services-heading" tabindex="-1" class="text-h5 font-bold text-aeblack-800 focus:outline-none">Services</h2>
<a href="#services" class="inline-flex shrink-0 items-center gap-1 text-sm font-semibold text-primary-700 no-underline hover:text-primary-600">Overview<span class="sr-only"> of Services</span><svg class="size-4 rtl:-scale-x-100" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="20"><line x1="40" y1="128" x2="216" y2="128"/><polyline points="144 56 216 128 144 200"/></svg></a>
</div>
<div>
<p class="px-3 text-xs font-semibold tracking-wider text-aeblack-600 uppercase">Service category</p>
<ul role="list" class="mt-3 grid gap-2"><li><a href="#individuals" class="flex items-start gap-3 rounded-xl bg-primary-50 p-3 no-underline ring-1 ring-primary-100 transition-colors hover:bg-primary-100">
<span class="grid size-10 shrink-0 place-items-center rounded-lg bg-white text-primary-700 ring-1 ring-primary-100"><svg class="size-5" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"><circle cx="128" cy="96" r="56"/><path d="M32,216c19.37-33.47,54.55-56,96-56s76.63,22.53,96,56"/></svg></span>
<span class="flex min-w-0 flex-col"><span class="font-semibold text-primary-800">Individuals</span><span class="text-sm text-pretty text-primary-800">Services for residents and citizens.</span></span>
</a></li><li><a href="#businesses" class="flex items-start gap-3 rounded-xl bg-primary-50 p-3 no-underline ring-1 ring-primary-100 transition-colors hover:bg-primary-100">
<span class="grid size-10 shrink-0 place-items-center rounded-lg bg-white text-primary-700 ring-1 ring-primary-100"><svg class="size-5" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"><rect x="32" y="72" width="192" height="136" rx="8"/><path d="M168,72V56a16,16,0,0,0-16-16H104A16,16,0,0,0,88,56V72"/><line x1="32" y1="128" x2="224" y2="128"/></svg></span>
<span class="flex min-w-0 flex-col"><span class="font-semibold text-primary-800">Businesses</span><span class="text-sm text-pretty text-primary-800">Services for companies and traders.</span></span>
</a></li><li><a href="#government" class="flex items-start gap-3 rounded-xl bg-primary-50 p-3 no-underline ring-1 ring-primary-100 transition-colors hover:bg-primary-100">
<span class="grid size-10 shrink-0 place-items-center rounded-lg bg-white text-primary-700 ring-1 ring-primary-100"><svg class="size-5" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"><line x1="32" y1="216" x2="224" y2="216"/><path d="M48,216V96L128,40l80,56V216"/><line x1="88" y1="216" x2="88" y2="128"/><line x1="128" y1="216" x2="128" y2="128"/><line x1="168" y1="216" x2="168" y2="128"/></svg></span>
<span class="flex min-w-0 flex-col"><span class="font-semibold text-primary-800">Government</span><span class="text-sm text-pretty text-primary-800">Requests between government entities.</span></span>
</a></li></ul>
</div>
<div class="mt-6">
<p class="px-3 text-xs font-semibold tracking-wider text-aeblack-600 uppercase">Help and support</p>
<ul role="list" class="mt-2 flex flex-col"><li><aegov-link href="#complaints-and-suggestions" class="block" extra-class="flex w-full items-center justify-between gap-3 rounded-lg px-3 py-3 text-base font-medium !text-aeblack-800 no-underline hover:bg-primary-50 hover:!text-primary-700">Complaints and suggestions<svg class="size-4 shrink-0 text-aeblack-400 rtl:-scale-x-100" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="20"><polyline points="96 48 176 128 96 208"/></svg></aegov-link></li><li><aegov-link href="#track-an-application" class="block" extra-class="flex w-full items-center justify-between gap-3 rounded-lg px-3 py-3 text-base font-medium !text-aeblack-800 no-underline hover:bg-primary-50 hover:!text-primary-700">Track an application<svg class="size-4 shrink-0 text-aeblack-400 rtl:-scale-x-100" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="20"><polyline points="96 48 176 128 96 208"/></svg></aegov-link></li><li><aegov-link href="#service-fees" class="block" extra-class="flex w-full items-center justify-between gap-3 rounded-lg px-3 py-3 text-base font-medium !text-aeblack-800 no-underline hover:bg-primary-50 hover:!text-primary-700">Service fees<svg class="size-4 shrink-0 text-aeblack-400 rtl:-scale-x-100" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="20"><polyline points="96 48 176 128 96 208"/></svg></aegov-link></li></ul>
</div>
</section>
<section id="mm-participate" data-mm-panel data-state="next" inert aria-labelledby="mm-participate-heading" class="col-start-1 row-start-1 self-start transition-[translate,opacity] duration-300 ease-out motion-reduce:transition-none data-[state=active]:translate-x-0 data-[state=active]:opacity-100 data-[state=prev]:-translate-x-1/4 data-[state=prev]:opacity-0 data-[state=next]:translate-x-full data-[state=next]:opacity-0 rtl:data-[state=prev]:translate-x-1/4 rtl:data-[state=next]:-translate-x-full">
<button type="button" data-mm-back class="-ms-1 inline-flex flex-nowrap items-center gap-1.5 rounded-lg px-1 py-1 text-sm font-semibold text-primary-700 hover:text-primary-600"><svg class="size-4 rtl:-scale-x-100" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="20"><polyline points="160 208 80 128 160 48"/></svg>Main menu</button>
<div class="mt-3 mb-5 flex items-end justify-between gap-3 border-b border-aeblack-100 pb-4">
<h2 id="mm-participate-heading" tabindex="-1" class="text-h5 font-bold text-aeblack-800 focus:outline-none">Have your say</h2>
<a href="#participate" class="inline-flex shrink-0 items-center gap-1 text-sm font-semibold text-primary-700 no-underline hover:text-primary-600">Overview<span class="sr-only"> of Have your say</span><svg class="size-4 rtl:-scale-x-100" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="20"><line x1="40" y1="128" x2="216" y2="128"/><polyline points="144 56 216 128 144 200"/></svg></a>
</div>
<div class="">
<p class="px-3 text-xs font-semibold tracking-wider text-aeblack-600 uppercase">Take part</p>
<ul role="list" class="mt-2 flex flex-col"><li><aegov-link href="#consultations" class="block" extra-class="flex w-full items-center justify-between gap-3 rounded-lg px-3 py-3 text-base font-medium !text-aeblack-800 no-underline hover:bg-primary-50 hover:!text-primary-700">Consultations<svg class="size-4 shrink-0 text-aeblack-400 rtl:-scale-x-100" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="20"><polyline points="96 48 176 128 96 208"/></svg></aegov-link></li><li><aegov-link href="#surveys" class="block" extra-class="flex w-full items-center justify-between gap-3 rounded-lg px-3 py-3 text-base font-medium !text-aeblack-800 no-underline hover:bg-primary-50 hover:!text-primary-700">Surveys<svg class="size-4 shrink-0 text-aeblack-400 rtl:-scale-x-100" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="20"><polyline points="96 48 176 128 96 208"/></svg></aegov-link></li><li><aegov-link href="#share-an-idea" class="block" extra-class="flex w-full items-center justify-between gap-3 rounded-lg px-3 py-3 text-base font-medium !text-aeblack-800 no-underline hover:bg-primary-50 hover:!text-primary-700">Share an idea<svg class="size-4 shrink-0 text-aeblack-400 rtl:-scale-x-100" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="20"><polyline points="96 48 176 128 96 208"/></svg></aegov-link></li></ul>
</div>
<div class="mt-6">
<p class="px-3 text-xs font-semibold tracking-wider text-aeblack-600 uppercase">Stay connected</p>
<ul role="list" class="mt-2 flex flex-col"><li><aegov-link href="#blog" class="block" extra-class="flex w-full items-center justify-between gap-3 rounded-lg px-3 py-3 text-base font-medium !text-aeblack-800 no-underline hover:bg-primary-50 hover:!text-primary-700">Blog<svg class="size-4 shrink-0 text-aeblack-400 rtl:-scale-x-100" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="20"><polyline points="96 48 176 128 96 208"/></svg></aegov-link></li><li><aegov-link href="#newsletter" class="block" extra-class="flex w-full items-center justify-between gap-3 rounded-lg px-3 py-3 text-base font-medium !text-aeblack-800 no-underline hover:bg-primary-50 hover:!text-primary-700">Newsletter<svg class="size-4 shrink-0 text-aeblack-400 rtl:-scale-x-100" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="20"><polyline points="96 48 176 128 96 208"/></svg></aegov-link></li></ul>
</div>
</section>
<section id="mm-media" data-mm-panel data-state="next" inert aria-labelledby="mm-media-heading" class="col-start-1 row-start-1 self-start transition-[translate,opacity] duration-300 ease-out motion-reduce:transition-none data-[state=active]:translate-x-0 data-[state=active]:opacity-100 data-[state=prev]:-translate-x-1/4 data-[state=prev]:opacity-0 data-[state=next]:translate-x-full data-[state=next]:opacity-0 rtl:data-[state=prev]:translate-x-1/4 rtl:data-[state=next]:-translate-x-full">
<button type="button" data-mm-back class="-ms-1 inline-flex flex-nowrap items-center gap-1.5 rounded-lg px-1 py-1 text-sm font-semibold text-primary-700 hover:text-primary-600"><svg class="size-4 rtl:-scale-x-100" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="20"><polyline points="160 208 80 128 160 48"/></svg>Main menu</button>
<div class="mt-3 mb-5 flex items-end justify-between gap-3 border-b border-aeblack-100 pb-4">
<h2 id="mm-media-heading" tabindex="-1" class="text-h5 font-bold text-aeblack-800 focus:outline-none">Media</h2>
<a href="#media" class="inline-flex shrink-0 items-center gap-1 text-sm font-semibold text-primary-700 no-underline hover:text-primary-600">Overview<span class="sr-only"> of Media</span><svg class="size-4 rtl:-scale-x-100" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="20"><line x1="40" y1="128" x2="216" y2="128"/><polyline points="144 56 216 128 144 200"/></svg></a>
</div>
<div class="">
<p class="px-3 text-xs font-semibold tracking-wider text-aeblack-600 uppercase">Newsroom</p>
<ul role="list" class="mt-2 flex flex-col"><li><aegov-link href="#news" class="block" extra-class="flex w-full items-center justify-between gap-3 rounded-lg px-3 py-3 text-base font-medium !text-aeblack-800 no-underline hover:bg-primary-50 hover:!text-primary-700">News<svg class="size-4 shrink-0 text-aeblack-400 rtl:-scale-x-100" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="20"><polyline points="96 48 176 128 96 208"/></svg></aegov-link></li><li><aegov-link href="#events" class="block" extra-class="flex w-full items-center justify-between gap-3 rounded-lg px-3 py-3 text-base font-medium !text-aeblack-800 no-underline hover:bg-primary-50 hover:!text-primary-700">Events<svg class="size-4 shrink-0 text-aeblack-400 rtl:-scale-x-100" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="20"><polyline points="96 48 176 128 96 208"/></svg></aegov-link></li><li><aegov-link href="#press-releases" class="block" extra-class="flex w-full items-center justify-between gap-3 rounded-lg px-3 py-3 text-base font-medium !text-aeblack-800 no-underline hover:bg-primary-50 hover:!text-primary-700">Press releases<svg class="size-4 shrink-0 text-aeblack-400 rtl:-scale-x-100" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="20"><polyline points="96 48 176 128 96 208"/></svg></aegov-link></li></ul>
</div>
<div class="mt-6">
<p class="px-3 text-xs font-semibold tracking-wider text-aeblack-600 uppercase">Gallery</p>
<ul role="list" class="mt-2 flex flex-col"><li><aegov-link href="#photos" class="block" extra-class="flex w-full items-center justify-between gap-3 rounded-lg px-3 py-3 text-base font-medium !text-aeblack-800 no-underline hover:bg-primary-50 hover:!text-primary-700">Photos<svg class="size-4 shrink-0 text-aeblack-400 rtl:-scale-x-100" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="20"><polyline points="96 48 176 128 96 208"/></svg></aegov-link></li><li><aegov-link href="#videos" class="block" extra-class="flex w-full items-center justify-between gap-3 rounded-lg px-3 py-3 text-base font-medium !text-aeblack-800 no-underline hover:bg-primary-50 hover:!text-primary-700">Videos<svg class="size-4 shrink-0 text-aeblack-400 rtl:-scale-x-100" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="20"><polyline points="96 48 176 128 96 208"/></svg></aegov-link></li></ul>
</div>
</section>
<section id="mm-about" data-mm-panel data-state="next" inert aria-labelledby="mm-about-heading" class="col-start-1 row-start-1 self-start transition-[translate,opacity] duration-300 ease-out motion-reduce:transition-none data-[state=active]:translate-x-0 data-[state=active]:opacity-100 data-[state=prev]:-translate-x-1/4 data-[state=prev]:opacity-0 data-[state=next]:translate-x-full data-[state=next]:opacity-0 rtl:data-[state=prev]:translate-x-1/4 rtl:data-[state=next]:-translate-x-full">
<button type="button" data-mm-back class="-ms-1 inline-flex flex-nowrap items-center gap-1.5 rounded-lg px-1 py-1 text-sm font-semibold text-primary-700 hover:text-primary-600"><svg class="size-4 rtl:-scale-x-100" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="20"><polyline points="160 208 80 128 160 48"/></svg>Main menu</button>
<div class="mt-3 mb-5 flex items-end justify-between gap-3 border-b border-aeblack-100 pb-4">
<h2 id="mm-about-heading" tabindex="-1" class="text-h5 font-bold text-aeblack-800 focus:outline-none">About</h2>
<a href="#about" class="inline-flex shrink-0 items-center gap-1 text-sm font-semibold text-primary-700 no-underline hover:text-primary-600">Overview<span class="sr-only"> of About</span><svg class="size-4 rtl:-scale-x-100" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="20"><line x1="40" y1="128" x2="216" y2="128"/><polyline points="144 56 216 128 144 200"/></svg></a>
</div>
<div class="">
<p class="px-3 text-xs font-semibold tracking-wider text-aeblack-600 uppercase">Who we are</p>
<ul role="list" class="mt-2 flex flex-col"><li><aegov-link href="#our-story" class="block" extra-class="flex w-full items-center justify-between gap-3 rounded-lg px-3 py-3 text-base font-medium !text-aeblack-800 no-underline hover:bg-primary-50 hover:!text-primary-700">Our story<svg class="size-4 shrink-0 text-aeblack-400 rtl:-scale-x-100" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="20"><polyline points="96 48 176 128 96 208"/></svg></aegov-link></li><li><aegov-link href="#leadership" class="block" extra-class="flex w-full items-center justify-between gap-3 rounded-lg px-3 py-3 text-base font-medium !text-aeblack-800 no-underline hover:bg-primary-50 hover:!text-primary-700">Leadership<svg class="size-4 shrink-0 text-aeblack-400 rtl:-scale-x-100" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="20"><polyline points="96 48 176 128 96 208"/></svg></aegov-link></li><li><aegov-link href="#strategy" class="block" extra-class="flex w-full items-center justify-between gap-3 rounded-lg px-3 py-3 text-base font-medium !text-aeblack-800 no-underline hover:bg-primary-50 hover:!text-primary-700">Strategy<svg class="size-4 shrink-0 text-aeblack-400 rtl:-scale-x-100" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="20"><polyline points="96 48 176 128 96 208"/></svg></aegov-link></li></ul>
</div>
<div class="mt-6">
<p class="px-3 text-xs font-semibold tracking-wider text-aeblack-600 uppercase">Work with us</p>
<ul role="list" class="mt-2 flex flex-col"><li><aegov-link href="#careers" class="block" extra-class="flex w-full items-center justify-between gap-3 rounded-lg px-3 py-3 text-base font-medium !text-aeblack-800 no-underline hover:bg-primary-50 hover:!text-primary-700">Careers<svg class="size-4 shrink-0 text-aeblack-400 rtl:-scale-x-100" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="20"><polyline points="96 48 176 128 96 208"/></svg></aegov-link></li><li><aegov-link href="#procurement" class="block" extra-class="flex w-full items-center justify-between gap-3 rounded-lg px-3 py-3 text-base font-medium !text-aeblack-800 no-underline hover:bg-primary-50 hover:!text-primary-700">Procurement<svg class="size-4 shrink-0 text-aeblack-400 rtl:-scale-x-100" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="20"><polyline points="96 48 176 128 96 208"/></svg></aegov-link></li><li><aegov-link href="#contact-us" class="block" extra-class="flex w-full items-center justify-between gap-3 rounded-lg px-3 py-3 text-base font-medium !text-aeblack-800 no-underline hover:bg-primary-50 hover:!text-primary-700">Contact us<svg class="size-4 shrink-0 text-aeblack-400 rtl:-scale-x-100" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="20"><polyline points="96 48 176 128 96 208"/></svg></aegov-link></li></ul>
</div>
</section>
</div>
</nav>
<div class="mt-auto flex flex-col gap-3">
<div class="relative isolate overflow-hidden rounded-2xl bg-primary-900 p-4 text-whitely-50">
<div aria-hidden="true" class="absolute -top-12 -end-10 -z-10 size-36 rounded-full bg-radial from-aegreen-600/40 to-transparent blur-xl"></div>
<p class="text-sm font-semibold">Need help? We're here 8am–8pm.</p>
<div class="mt-3 grid grid-cols-2 gap-2">
<a href="tel:80012345" class="flex items-center justify-center gap-2 rounded-lg bg-white/10 px-3 py-2.5 text-sm font-semibold whitespace-nowrap text-white no-underline ring-1 ring-white/15 hover:bg-white/20"><svg class="size-4" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="20"><path d="M164.39,145.34a8,8,0,0,1,7.59-.69l47.16,21.13a8,8,0,0,1,4.8,8.3A48.33,48.33,0,0,1,176,216,136,136,0,0,1,40,80,48.33,48.33,0,0,1,81.92,32.06a8,8,0,0,1,8.3,4.8l21.13,47.2a8,8,0,0,1-.66,7.53L89.32,117a7.93,7.93,0,0,0-.54,7.81c8.27,16.93,25.77,34.22,42.75,42.41a7.92,7.92,0,0,0,7.83-.59Z"/></svg><span dir="ltr">800 12345</span></a>
<a href="#chat" class="flex items-center justify-center gap-2 rounded-lg bg-white/10 px-3 py-2.5 text-sm font-semibold whitespace-nowrap text-white no-underline ring-1 ring-white/15 hover:bg-white/20"><svg class="size-4" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="20"><path d="M79.93,211.11a96,96,0,1,0-35-35L32.42,213.46a8,8,0,0,0,10.12,10.12Z"/><line x1="96" y1="112" x2="160" y2="112"/><line x1="96" y1="144" x2="136" y2="144"/></svg>Live chat</a>
</div>
</div>
<div class="flex items-center justify-between gap-3 px-1 text-sm">
<div class="flex items-center gap-4">
<a href="#accessibility" class="inline-flex items-center gap-2 font-medium text-aeblack-700 no-underline hover:text-primary-700"><svg class="size-4" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="20"><circle cx="128" cy="44" r="16"/><path d="M48,88s48,16,80,16,80-16,80-16"/><polyline points="96 216 128 136 160 216"/><line x1="128" y1="104" x2="128" y2="136"/></svg>Accessibility</a>
<button type="button" data-theme-toggle aria-pressed="false" class="inline-flex flex-nowrap items-center gap-2 font-medium text-aeblack-700 hover:text-primary-700"><svg class="size-4" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="20"><path d="M108.11,28.11A96.09,96.09,0,0,0,227.89,147.89,96,96,0,1,1,108.11,28.11Z"/></svg>Dark mode</button>
</div>
<a href="#ar" lang="ar" hreflang="ar" class="inline-flex items-center gap-2 rounded-full bg-aeblack-50 px-3 py-1.5 font-semibold text-aeblack-800 no-underline ring-1 ring-aeblack-100 hover:bg-primary-50"><svg class="size-4" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="20"><circle cx="128" cy="128" r="96"/><line x1="32" y1="128" x2="224" y2="128"/><path d="M128,32c-24,26-36,58-36,96s12,70,36,96c24-26,36-58,36-96S152,58,128,32Z"/></svg>العربية</a>
</div>
</div>
</div>
</aegov-drawer>
<script>
// Mobile navigation in a left drawer. Sections with a chevron open a panel that
// slides in over the main list; "Main menu" (or the left arrow key) slides back.
// The panels share one grid cell, and the stack's height follows the active
// panel so the help block below never jumps. Closing always resets to the main list.
document.querySelectorAll('[data-menu-open]').forEach((trigger) => {
const drawer = document.getElementById('menu-drawer');
const menu = drawer.querySelector('[data-mobile-menu]');
const stack = menu.querySelector('[data-mm-stack]');
const root = menu.querySelector('[data-mm-root]');
const panels = [...menu.querySelectorAll('[data-mm-panel]')];
let current = root;
const fitHeight = () => { stack.style.height = `${current.offsetHeight}px`; };
const show = (panel, focus = true) => {
const from = current;
panels.forEach((item) => {
item.dataset.state = item === panel ? 'active' : item === root ? 'prev' : 'next';
item.inert = item !== panel;
});
menu.querySelectorAll('[data-mm-open]').forEach((button) => button.setAttribute('aria-expanded', String(button.dataset.mmOpen === panel.id)));
current = panel;
fitHeight();
if (!focus) return;
// preventScroll: focusing mid-slide would otherwise scroll the clipped stack sideways.
if (panel === root) {
menu.querySelector(`[data-mm-open="${from.id}"]`)?.focus({ preventScroll: true });
} else {
panel.querySelector('h2').focus({ preventScroll: true });
}
};
menu.addEventListener('click', (event) => {
const opener = event.target.closest('[data-mm-open]');
if (opener) return show(document.getElementById(opener.dataset.mmOpen));
if (event.target.closest('[data-mm-back]')) return show(root);
const theme = event.target.closest('[data-theme-toggle]');
if (theme) {
// Example only: switch your site's theme here.
theme.setAttribute('aria-pressed', String(theme.getAttribute('aria-pressed') !== 'true'));
}
});
menu.addEventListener('keydown', (event) => {
const back = getComputedStyle(menu).direction === 'rtl' ? 'ArrowRight' : 'ArrowLeft';
if (event.key === back && current !== root) show(root);
});
trigger.addEventListener('click', () => drawer.show());
menu.querySelector('[data-menu-close]').addEventListener('click', () => drawer.close());
drawer.addEventListener('aegovDrawerClose', () => show(root, false));
// Re-fit whenever a panel's size changes: on open, on resize, on font load.
const observer = new ResizeObserver(fitHeight);
panels.forEach((item) => observer.observe(item));
});
</script>
Uses the UAE Design System web components. Load the theme, base CSS and component loader first. See installation.
Drawer Example 05
Help and support in a drawer, opened from any page: help for the page you are on, a search that filters articles as you type, quick answers, and every way to reach a person, with a short "was this helpful?" at the end. It uses the wider lg size (640px), to show that the width of a drawer can be set to suit its content.
Drawer Example 05
<div class="min-h-[max(100dvh,52rem)] bg-aeblack-50">
<div class="flex items-center justify-between gap-4 border-b border-aeblack-100 bg-white px-4 py-3 sm:px-8">
<div role="img" aria-label="Logo" class="relative flex h-10 w-32 items-center justify-center overflow-hidden rounded-lg border-2 border-dashed border-aeblack-200 bg-white">
<svg aria-hidden="true" class="absolute inset-0 size-full text-aeblack-200" preserveAspectRatio="none" viewBox="0 0 100 100" fill="none"><line x1="0" y1="0" x2="100" y2="100" stroke="currentColor" stroke-width="1" vector-effect="non-scaling-stroke"/><line x1="100" y1="0" x2="0" y2="100" stroke="currentColor" stroke-width="1" vector-effect="non-scaling-stroke"/></svg>
<span aria-hidden="true" class="relative rounded bg-white px-2 text-sm font-semibold text-aeblack-500">Logo</span>
</div>
<aegov-button data-help-open variant="neutral-max" appearance="outline" size="base">
<svg class="hidden sm:block" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3M12 17h.01"/></svg>
Help
</aegov-button>
</div>
<div aria-hidden="true" class="mx-auto max-w-5xl px-4 py-8 sm:px-8">
<div class="h-3 w-40 rounded-full bg-aeblack-200"></div>
<div class="mt-4 h-6 w-72 max-w-full rounded-full bg-aeblack-200"></div>
<div class="mt-8 space-y-4 rounded-2xl bg-white p-6 ring-1 ring-aeblack-950/5">
<div class="h-3 w-24 rounded-full bg-aeblack-100"></div><div class="h-10 rounded-lg bg-aeblack-50 ring-1 ring-aeblack-100"></div>
<div class="h-3 w-32 rounded-full bg-aeblack-100"></div><div class="h-24 rounded-lg bg-aeblack-50 ring-1 ring-aeblack-100"></div>
</div>
</div>
</div>
<aegov-drawer id="help-drawer" position="right" size="lg" is-pinned="false" is-padding="false" label="Help and support">
<div data-help class="flex min-h-full flex-col bg-aeblack-100/50 text-aeblack-800">
<div class="sticky top-0 z-10 flex items-center gap-3 border-b border-aeblack-100 bg-whitely-50/90 px-5 py-4 backdrop-blur sm:px-6">
<span aria-hidden="true" class="flex size-10 shrink-0 items-center justify-center rounded-xl bg-aeblack-900 text-white shadow-sm">
<svg class="size-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><circle cx="12" cy="12" r="4"/><path d="m4.93 4.93 4.24 4.24M14.83 14.83l4.24 4.24M14.83 9.17l4.24-4.24M4.93 19.07l4.24-4.24"/></svg>
</span>
<div class="min-w-0 flex-1">
<h2 class="text-lg font-bold text-aeblack-900">Help and support</h2>
<p class="truncate text-xs text-aeblack-600">Answers and people, whenever you need them</p>
</div>
<aegov-button data-help-close appearance="link" variant="neutral-max" size="sm" is-icon="true" aria-label="Close help">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18M6 6l12 12"/></svg>
</aegov-button>
</div>
<div class="flex-1 space-y-7 px-4 py-5 sm:px-6 sm:py-6">
<div class="relative isolate overflow-hidden rounded-2xl bg-aeblack-900 p-4 text-whitely-50">
<div aria-hidden="true" class="absolute -top-12 -end-10 -z-10 size-40 rounded-full bg-radial from-aegreen-600/40 to-transparent blur-xl"></div>
<p class="text-xs font-medium text-aeblack-200">Help for this page</p>
<p class="mt-1 text-base font-semibold">Trade licence renewal</p>
<p class="mt-3 inline-flex items-center gap-2 rounded-full bg-white/10 px-3 py-1 text-xs font-medium ring-1 ring-white/15"><span aria-hidden="true" class="size-1.5 rounded-full bg-aegreen-400"></span>Step 2 of 4: Upload documents</p>
</div>
<div>
<aegov-input data-help-search type="search" aria-label="Search help articles" placeholder="Search help, for example fees" variant="neutral-min" class="block">
<svg slot="icon-start" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/></svg>
</aegov-input>
</div>
<section aria-labelledby="help-articles" class="space-y-2">
<h3 id="help-articles" class="px-1 text-xs font-semibold tracking-wide text-aeblack-600 uppercase">Popular for this page</h3>
<ul data-help-articles class="divide-y divide-aeblack-100 rounded-2xl bg-white shadow-xs ring-1 ring-aeblack-950/5">
<li><a href="#help-documents" class="group flex items-center gap-3 px-4 py-3.5 no-underline hover:bg-aeblack-50"><span aria-hidden="true" class="flex size-9 shrink-0 items-center justify-center rounded-xl bg-techblue-100 text-techblue-700"><svg class="size-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><path d="M14 2v6h6M9 13h6M9 17h6"/></svg></span><span class="min-w-0 flex-1"><span class="block text-sm font-semibold text-aeblack-900">Which documents do I need to upload?</span><span class="block text-xs text-aeblack-600">2 min read</span></span><svg aria-hidden="true" class="size-4 shrink-0 text-aeblack-400 rtl:-scale-x-100" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18 6-6-6-6"/></svg></a></li>
<li><a href="#help-file-size" class="group flex items-center gap-3 px-4 py-3.5 no-underline hover:bg-aeblack-50"><span aria-hidden="true" class="flex size-9 shrink-0 items-center justify-center rounded-xl bg-techblue-100 text-techblue-700"><svg class="size-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><path d="M14 2v6h6M9 13h6M9 17h6"/></svg></span><span class="min-w-0 flex-1"><span class="block text-sm font-semibold text-aeblack-900">My file is too large to upload</span><span class="block text-xs text-aeblack-600">1 min read</span></span><svg aria-hidden="true" class="size-4 shrink-0 text-aeblack-400 rtl:-scale-x-100" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18 6-6-6-6"/></svg></a></li>
<li><a href="#help-fees" class="group flex items-center gap-3 px-4 py-3.5 no-underline hover:bg-aeblack-50"><span aria-hidden="true" class="flex size-9 shrink-0 items-center justify-center rounded-xl bg-techblue-100 text-techblue-700"><svg class="size-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><path d="M14 2v6h6M9 13h6M9 17h6"/></svg></span><span class="min-w-0 flex-1"><span class="block text-sm font-semibold text-aeblack-900">Renewal fees and how to pay</span><span class="block text-xs text-aeblack-600">3 min read</span></span><svg aria-hidden="true" class="size-4 shrink-0 text-aeblack-400 rtl:-scale-x-100" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18 6-6-6-6"/></svg></a></li>
<li><a href="#help-save" class="group flex items-center gap-3 px-4 py-3.5 no-underline hover:bg-aeblack-50"><span aria-hidden="true" class="flex size-9 shrink-0 items-center justify-center rounded-xl bg-techblue-100 text-techblue-700"><svg class="size-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><path d="M14 2v6h6M9 13h6M9 17h6"/></svg></span><span class="min-w-0 flex-1"><span class="block text-sm font-semibold text-aeblack-900">Save your application and finish later</span><span class="block text-xs text-aeblack-600">1 min read</span></span><svg aria-hidden="true" class="size-4 shrink-0 text-aeblack-400 rtl:-scale-x-100" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18 6-6-6-6"/></svg></a></li>
</ul>
<p data-help-empty role="status" class="hidden rounded-2xl bg-white px-4 py-5 text-center text-sm text-aeblack-600 ring-1 ring-aeblack-950/5"></p>
</section>
<section aria-labelledby="help-answers" class="space-y-2">
<h3 id="help-answers" class="px-1 text-xs font-semibold tracking-wide text-aeblack-600 uppercase">Quick answers</h3>
<div class="rounded-2xl bg-white px-4 shadow-xs ring-1 ring-aeblack-950/5">
<aegov-accordion size="sm" heading-level="4" icon="plus">
<aegov-accordion-item heading="How long does a renewal take?"><p class="text-sm text-aeblack-700">Most renewals are approved within 2 working days once all documents are uploaded.</p></aegov-accordion-item>
<aegov-accordion-item heading="Can someone apply on my behalf?"><p class="text-sm text-aeblack-700">Yes. A person you authorise can apply with their own UAE PASS and a signed authorisation letter.</p></aegov-accordion-item>
<aegov-accordion-item heading="What if my licence has already expired?"><p class="text-sm text-aeblack-700">You can still renew it here. A late fee may apply, and it is shown before you pay.</p></aegov-accordion-item>
</aegov-accordion>
</div>
</section>
<section aria-labelledby="help-contact" class="space-y-2">
<h3 id="help-contact" class="px-1 text-xs font-semibold tracking-wide text-aeblack-600 uppercase">Talk to us</h3>
<ul class="grid gap-2 sm:grid-cols-2">
<li><a href="tel:80012345" class="flex h-full items-start gap-3 rounded-2xl bg-white p-4 no-underline shadow-xs ring-1 ring-aeblack-950/5 hover:ring-aeblack-200"><span aria-hidden="true" class="flex size-9 shrink-0 items-center justify-center rounded-xl bg-aegreen-100 text-aegreen-700"><svg class="size-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.8 19.8 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.12 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z"/></svg></span><span class="min-w-0"><span class="block text-sm font-semibold text-aeblack-900">Call <span dir="ltr">800 12345</span></span><span class="block text-xs text-aeblack-600">Sunday to Friday, 8am to 8pm</span></span></a></li>
<li><a href="#chat" class="flex h-full items-start gap-3 rounded-2xl bg-white p-4 no-underline shadow-xs ring-1 ring-aeblack-950/5 hover:ring-aeblack-200"><span aria-hidden="true" class="relative flex size-9 shrink-0 items-center justify-center rounded-xl bg-seablue-100 text-seablue-700"><svg class="size-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg><span class="absolute -end-0.5 -top-0.5 size-2.5 rounded-full bg-aegreen-500 ring-2 ring-white"></span></span><span class="min-w-0"><span class="block text-sm font-semibold text-aeblack-900">Live chat</span><span class="block text-xs text-aeblack-600">Online now, replies in about 2 minutes</span></span></a></li>
<li><a href="mailto:support@example.gov.ae" class="flex h-full items-start gap-3 rounded-2xl bg-white p-4 no-underline shadow-xs ring-1 ring-aeblack-950/5 hover:ring-aeblack-200"><span aria-hidden="true" class="flex size-9 shrink-0 items-center justify-center rounded-xl bg-camel-100 text-camel-700"><svg class="size-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="4" width="20" height="16" rx="2"/><path d="m22 7-10 6L2 7"/></svg></span><span class="min-w-0"><span class="block text-sm font-semibold text-aeblack-900">Email us</span><span class="block text-xs text-aeblack-600">We reply within 1 working day</span></span></a></li>
<li><a href="#centres" class="flex h-full items-start gap-3 rounded-2xl bg-white p-4 no-underline shadow-xs ring-1 ring-aeblack-950/5 hover:ring-aeblack-200"><span aria-hidden="true" class="flex size-9 shrink-0 items-center justify-center rounded-xl bg-fuchsia-100 text-fuchsia-700"><svg class="size-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0z"/><circle cx="12" cy="10" r="3"/></svg></span><span class="min-w-0"><span class="block text-sm font-semibold text-aeblack-900">Visit a centre</span><span class="block text-xs text-aeblack-600">Find the nearest service centre</span></span></a></li>
</ul>
</section>
</div>
<div class="sticky bottom-0 z-10 border-t border-aeblack-100 bg-whitely-50/90 px-5 py-4 shadow-[0_-8px_24px_-12px_rgb(0_0_0/0.12)] backdrop-blur sm:px-6">
<div data-help-feedback class="flex flex-wrap items-center justify-between gap-3">
<p class="text-sm font-semibold text-aeblack-900">Was this helpful?</p>
<div class="flex gap-2">
<aegov-button data-help-vote="yes" variant="neutral-max" appearance="outline" size="sm">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M7 10v12M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z"/></svg>
Yes
</aegov-button>
<aegov-button data-help-vote="no" variant="neutral-max" appearance="outline" size="sm">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M17 14V2M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z"/></svg>
No
</aegov-button>
</div>
</div>
<p data-help-thanks role="status" class="text-sm text-aeblack-700"></p>
</div>
</div>
</aegov-drawer>
<script>
// Help and support drawer. The search filters the articles as you type and says
// when nothing matches; the footer asks whether the help was useful and thanks
// the person. The drawer floats with a gap on larger screens and is pinned on phones.
document.querySelectorAll('[data-help-open]').forEach((trigger) => {
const drawer = document.getElementById('help-drawer');
const help = drawer.querySelector('[data-help]');
const search = help.querySelector('[data-help-search]');
const articles = [...help.querySelectorAll('[data-help-articles] > li')];
const list = help.querySelector('[data-help-articles]');
const empty = help.querySelector('[data-help-empty]');
search.addEventListener('aegovInputValue', () => {
const query = (search.value || '').trim().toLowerCase();
let shown = 0;
articles.forEach((article) => {
const match = article.textContent.toLowerCase().includes(query);
article.hidden = !match;
shown += match ? 1 : 0;
});
list.classList.toggle('hidden', shown === 0);
empty.classList.toggle('hidden', shown > 0);
empty.textContent = shown ? '' : `No articles match "${search.value.trim()}". Try another word, or talk to us below.`;
});
help.querySelectorAll('[data-help-vote]').forEach((button) => {
button.addEventListener('click', () => {
// Example only: send the vote to your feedback endpoint here.
help.querySelector('[data-help-feedback]').hidden = true;
help.querySelector('[data-help-thanks]').textContent = button.dataset.helpVote === 'yes'
? 'Thanks for letting us know.'
: 'Thanks. Tell us more by live chat or email, and we will improve this help.';
});
});
const wide = matchMedia('(min-width: 640px)');
const pin = () => drawer.setAttribute('is-pinned', String(!wide.matches));
pin();
wide.addEventListener('change', pin);
trigger.addEventListener('click', () => drawer.show());
help.querySelector('[data-help-close]').addEventListener('click', () => drawer.close());
});
</script>
Uses the UAE Design System web components. Load the theme, base CSS and component loader first. See installation.
Drawer Example 06
A notifications centre opened from the bell: updates grouped by day, each with its type, time and an action where one helps. Unread items are marked and can be read one by one or all at once, and the filter shows only what is still unread.
Drawer Example 06
<div class="min-h-[max(100dvh,52rem)] bg-aeblack-50">
<div class="flex items-center justify-between gap-4 border-b border-aeblack-100 bg-white px-4 py-3 sm:px-8">
<div role="img" aria-label="Logo" class="relative flex h-10 w-32 items-center justify-center overflow-hidden rounded-lg border-2 border-dashed border-aeblack-200 bg-white">
<svg aria-hidden="true" class="absolute inset-0 size-full text-aeblack-200" preserveAspectRatio="none" viewBox="0 0 100 100" fill="none"><line x1="0" y1="0" x2="100" y2="100" stroke="currentColor" stroke-width="1" vector-effect="non-scaling-stroke"/><line x1="100" y1="0" x2="0" y2="100" stroke="currentColor" stroke-width="1" vector-effect="non-scaling-stroke"/></svg>
<span aria-hidden="true" class="relative rounded bg-white px-2 text-sm font-semibold text-aeblack-500">Logo</span>
</div>
<span class="relative">
<aegov-button data-notes-open variant="neutral-max" appearance="outline" size="base" is-icon="true" aria-label="Notifications, 3 unread">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9M10.3 21a1.94 1.94 0 0 0 3.4 0"/></svg>
</aegov-button>
<span data-notes-dot aria-hidden="true" class="pointer-events-none absolute -end-1 -top-1 flex size-5 items-center justify-center rounded-full bg-aered-600 text-xs font-semibold text-white ring-2 ring-white">3</span>
</span>
</div>
<div aria-hidden="true" class="mx-auto max-w-5xl px-4 py-8 sm:px-8">
<div class="h-5 w-56 rounded-full bg-aeblack-200"></div>
<div class="mt-3 h-3 w-80 max-w-full rounded-full bg-aeblack-100"></div>
<div class="mt-8 grid gap-4 sm:grid-cols-3"><div class="h-28 rounded-2xl bg-white ring-1 ring-aeblack-950/5"></div><div class="h-28 rounded-2xl bg-white ring-1 ring-aeblack-950/5"></div><div class="h-28 rounded-2xl bg-white ring-1 ring-aeblack-950/5"></div></div>
</div>
</div>
<aegov-drawer id="notes-drawer" position="right" size="base" is-pinned="false" is-padding="false" label="Notifications">
<div data-notes class="flex min-h-full flex-col bg-aeblack-100/50 text-aeblack-800">
<div class="sticky top-0 z-10 border-b border-aeblack-100 bg-whitely-50/90 px-5 pt-4 pb-3 backdrop-blur sm:px-6">
<div class="flex items-center gap-3">
<span aria-hidden="true" class="flex size-10 shrink-0 items-center justify-center rounded-xl bg-aeblack-900 text-white shadow-sm">
<svg class="size-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9M10.3 21a1.94 1.94 0 0 0 3.4 0"/></svg>
</span>
<div class="min-w-0 flex-1">
<h2 class="text-lg font-bold text-aeblack-900">Notifications</h2>
<p data-notes-summary class="text-xs text-aeblack-600">3 unread</p>
</div>
<aegov-button data-notes-close appearance="link" variant="neutral-max" size="sm" is-icon="true" aria-label="Close notifications">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18M6 6l12 12"/></svg>
</aegov-button>
</div>
<div class="mt-4 flex items-center justify-between gap-3">
<div role="group" aria-label="Show" class="flex gap-1 rounded-xl bg-aeblack-100 p-1">
<button type="button" data-notes-filter="all" aria-pressed="true" class="rounded-lg px-3 py-1.5 text-sm font-semibold text-aeblack-700 aria-pressed:bg-white aria-pressed:text-aeblack-900 aria-pressed:shadow-xs">All</button>
<button type="button" data-notes-filter="unread" aria-pressed="false" class="rounded-lg px-3 py-1.5 text-sm font-semibold text-aeblack-700 aria-pressed:bg-white aria-pressed:text-aeblack-900 aria-pressed:shadow-xs">Unread <span data-notes-count class="ms-1 rounded-full bg-aeblack-900 px-1.5 text-xs text-white">3</span></button>
</div>
<aegov-button data-notes-all appearance="link" variant="neutral-max" size="sm">Mark all as read</aegov-button>
</div>
</div>
<div class="flex-1 space-y-6 px-4 py-5 sm:px-6">
<section data-notes-group aria-labelledby="notes-today" class="space-y-2">
<h3 id="notes-today" class="px-1 text-xs font-semibold tracking-wide text-aeblack-600 uppercase">Today</h3>
<ul class="divide-y divide-aeblack-100 overflow-hidden rounded-2xl bg-white shadow-xs ring-1 ring-aeblack-950/5">
<li data-note="doc" data-unread="true" class="group/note relative flex gap-3 px-4 py-4 data-[unread=true]:bg-primary-50/40">
<span aria-hidden="true" class="absolute start-1.5 top-7 size-2 rounded-full bg-primary-500 group-data-[unread=false]/note:hidden"></span>
<span aria-hidden="true" class="flex size-10 shrink-0 items-center justify-center rounded-xl bg-aered-100 text-aered-700"><svg class="size-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0zM12 9v4M12 17h.01"/></svg></span>
<div class="min-w-0 flex-1">
<div class="flex items-start justify-between gap-3">
<p class="text-sm font-semibold text-aeblack-900"><span data-note-flag class="sr-only">Unread: </span>Document needed for your renewal</p>
<time datetime="2026-11-16T10:18" class="shrink-0 text-xs text-aeblack-600">12 min ago</time>
</div>
<p class="mt-0.5 text-sm text-aeblack-600">Upload a clear copy of your Emirates ID so we can continue application PR-48247.</p>
<div class="mt-3"><aegov-link href="#upload" data-note-action variant="neutral-max" appearance="outline" size="xs">Upload document</aegov-link></div>
<button type="button" data-note-read class="mt-2 text-xs font-semibold text-aeblack-700 underline-offset-2 hover:underline group-data-[unread=false]/note:hidden">Mark as read<span class="sr-only">: Document needed for your renewal</span></button>
</div>
</li>
<li data-note="licence" data-unread="true" class="group/note relative flex gap-3 px-4 py-4 data-[unread=true]:bg-primary-50/40">
<span aria-hidden="true" class="absolute start-1.5 top-7 size-2 rounded-full bg-primary-500 group-data-[unread=false]/note:hidden"></span>
<span aria-hidden="true" class="flex size-10 shrink-0 items-center justify-center rounded-xl bg-aegreen-100 text-aegreen-700"><svg class="size-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="m9 12 2 2 4-4"/></svg></span>
<div class="min-w-0 flex-1">
<div class="flex items-start justify-between gap-3">
<p class="text-sm font-semibold text-aeblack-900"><span data-note-flag class="sr-only">Unread: </span>Trade licence renewed</p>
<time datetime="2026-11-16T09:30" class="shrink-0 text-xs text-aeblack-600">1 hour ago</time>
</div>
<p class="mt-0.5 text-sm text-aeblack-600">Your licence is now valid until 14 November 2027.</p>
<div class="mt-3"><aegov-link href="#download" data-note-action variant="neutral-max" appearance="outline" size="xs">Download licence</aegov-link></div>
<button type="button" data-note-read class="mt-2 text-xs font-semibold text-aeblack-700 underline-offset-2 hover:underline group-data-[unread=false]/note:hidden">Mark as read<span class="sr-only">: Trade licence renewed</span></button>
</div>
</li>
</ul>
</section>
<section data-notes-group aria-labelledby="notes-earlier" class="space-y-2">
<h3 id="notes-earlier" class="px-1 text-xs font-semibold tracking-wide text-aeblack-600 uppercase">Earlier this week</h3>
<ul class="divide-y divide-aeblack-100 overflow-hidden rounded-2xl bg-white shadow-xs ring-1 ring-aeblack-950/5">
<li data-note="visit" data-unread="true" class="group/note relative flex gap-3 px-4 py-4 data-[unread=true]:bg-primary-50/40">
<span aria-hidden="true" class="absolute start-1.5 top-7 size-2 rounded-full bg-primary-500 group-data-[unread=false]/note:hidden"></span>
<span aria-hidden="true" class="flex size-10 shrink-0 items-center justify-center rounded-xl bg-techblue-100 text-techblue-700"><svg class="size-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2"/><path d="M16 2v4M8 2v4M3 10h18"/></svg></span>
<div class="min-w-0 flex-1">
<div class="flex items-start justify-between gap-3">
<p class="text-sm font-semibold text-aeblack-900"><span data-note-flag class="sr-only">Unread: </span>Appointment reminder</p>
<time datetime="2026-11-11T08:00" class="shrink-0 text-xs text-aeblack-600">Tuesday</time>
</div>
<p class="mt-0.5 text-sm text-aeblack-600">Your visit to the Dubai service centre is on Thursday at 10:30.</p>
<div class="mt-3"><aegov-link href="#calendar" data-note-action variant="neutral-max" appearance="outline" size="xs">Add to calendar</aegov-link></div>
<button type="button" data-note-read class="mt-2 text-xs font-semibold text-aeblack-700 underline-offset-2 hover:underline group-data-[unread=false]/note:hidden">Mark as read<span class="sr-only">: Appointment reminder</span></button>
</div>
</li>
<li data-note="payment" data-unread="false" class="group/note relative flex gap-3 px-4 py-4 data-[unread=true]:bg-primary-50/40">
<span aria-hidden="true" class="absolute start-1.5 top-7 size-2 rounded-full bg-primary-500 group-data-[unread=false]/note:hidden"></span>
<span aria-hidden="true" class="flex size-10 shrink-0 items-center justify-center rounded-xl bg-camel-100 text-camel-700"><svg class="size-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="5" width="20" height="14" rx="2"/><path d="M2 10h20"/></svg></span>
<div class="min-w-0 flex-1">
<div class="flex items-start justify-between gap-3">
<p class="text-sm font-semibold text-aeblack-900"><span data-note-flag class="sr-only"></span>Payment received</p>
<time datetime="2026-11-10T14:05" class="shrink-0 text-xs text-aeblack-600">Monday</time>
</div>
<p class="mt-0.5 text-sm text-aeblack-600">AED 1,250 for application PR-48213. Your receipt is in your account.</p>
<button type="button" data-note-read class="mt-2 text-xs font-semibold text-aeblack-700 underline-offset-2 hover:underline group-data-[unread=false]/note:hidden">Mark as read<span class="sr-only">: Payment received</span></button>
</div>
</li>
<li data-note="signin" data-unread="false" class="group/note relative flex gap-3 px-4 py-4 data-[unread=true]:bg-primary-50/40">
<span aria-hidden="true" class="absolute start-1.5 top-7 size-2 rounded-full bg-primary-500 group-data-[unread=false]/note:hidden"></span>
<span aria-hidden="true" class="flex size-10 shrink-0 items-center justify-center rounded-xl bg-aeblack-100 text-aeblack-700"><svg class="size-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/></svg></span>
<div class="min-w-0 flex-1">
<div class="flex items-start justify-between gap-3">
<p class="text-sm font-semibold text-aeblack-900"><span data-note-flag class="sr-only"></span>New sign-in to your account</p>
<time datetime="2026-11-09T19:42" class="shrink-0 text-xs text-aeblack-600">Sunday</time>
</div>
<p class="mt-0.5 text-sm text-aeblack-600">Signed in with UAE PASS on a new device in Abu Dhabi. Not you? Secure your account.</p>
<button type="button" data-note-read class="mt-2 text-xs font-semibold text-aeblack-700 underline-offset-2 hover:underline group-data-[unread=false]/note:hidden">Mark as read<span class="sr-only">: New sign-in to your account</span></button>
</div>
</li>
</ul>
</section>
<div data-notes-empty hidden class="rounded-2xl bg-white px-6 py-10 text-center shadow-xs ring-1 ring-aeblack-950/5">
<span aria-hidden="true" class="mx-auto flex size-12 items-center justify-center rounded-full bg-aegreen-100 text-aegreen-700 ring-8 ring-aegreen-50"><svg class="size-6" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="m9 12 2 2 4-4"/></svg></span>
<p class="mt-4 text-base font-semibold text-aeblack-900">You're all caught up</p>
<p class="mt-1 text-sm text-aeblack-600">New updates about your applications will appear here.</p>
</div>
</div>
<div class="sticky bottom-0 z-10 border-t border-aeblack-100 bg-whitely-50/90 px-5 py-3 backdrop-blur sm:px-6">
<aegov-link href="#notification-settings">Notification settings</aegov-link>
</div>
<p data-notes-status role="status" class="sr-only"></p>
</div>
</aegov-drawer>
<script>
// Notifications centre. Unread items carry a dot and a "Mark as read" button;
// using an item's action also marks it read. The filter shows all or only unread,
// and the counts in the header, the filter and the page's bell stay in step.
document.querySelectorAll('[data-notes-open]').forEach((trigger) => {
const drawer = document.getElementById('notes-drawer');
const panel = drawer.querySelector('[data-notes]');
const notes = [...panel.querySelectorAll('[data-note]')];
const status = panel.querySelector('[data-notes-status]');
const dot = document.querySelector('[data-notes-dot]');
let filter = 'all';
const update = () => {
const unread = notes.filter((note) => note.dataset.unread === 'true').length;
panel.querySelector('[data-notes-summary]').textContent = unread ? `${unread} unread` : 'All caught up';
panel.querySelector('[data-notes-count]').textContent = unread;
panel.querySelector('[data-notes-all]').isDisabled = !unread;
dot.textContent = unread;
dot.hidden = !unread;
trigger.setAttribute('aria-label', unread ? `Notifications, ${unread} unread` : 'Notifications');
notes.forEach((note) => { note.hidden = filter === 'unread' && note.dataset.unread !== 'true'; });
panel.querySelectorAll('[data-notes-group]').forEach((group) => {
group.hidden = !group.querySelector('[data-note]:not([hidden])');
});
panel.querySelector('[data-notes-empty]').hidden = notes.some((note) => !note.hidden);
};
const markRead = (note) => {
note.dataset.unread = 'false';
note.querySelector('[data-note-flag]').textContent = '';
};
panel.addEventListener('click', (event) => {
const note = event.target.closest('[data-note]');
if (event.target.closest('[data-note-read]')) {
markRead(note);
update();
status.textContent = 'Marked as read';
// The button is gone now; keep focus on the item's text.
note.querySelector('p').setAttribute('tabindex', '-1');
note.querySelector('p').focus();
return;
}
if (event.target.closest('[data-note-action]')) {
markRead(note);
update();
}
const choice = event.target.closest('[data-notes-filter]');
if (choice) {
filter = choice.dataset.notesFilter;
panel.querySelectorAll('[data-notes-filter]').forEach((button) => button.setAttribute('aria-pressed', String(button === choice)));
update();
}
});
panel.querySelector('[data-notes-all]').addEventListener('click', () => {
notes.forEach(markRead);
update();
status.textContent = 'All notifications marked as read';
});
const wide = matchMedia('(min-width: 640px)');
const pin = () => drawer.setAttribute('is-pinned', String(!wide.matches));
pin();
wide.addEventListener('change', pin);
trigger.addEventListener('click', () => drawer.show());
panel.querySelector('[data-notes-close]').addEventListener('click', () => drawer.close());
update();
});
</script>
Uses the UAE Design System web components. Load the theme, base CSS and component loader first. See installation.