Checkbox & Radio
Checkbox and radio blocks show how selection controls come together in real forms, from simple choices to option cards, for websites and applications.
Checkbox Example 01
A privacy settings card: each option is a checkbox with a short explanation and, where useful, a link to learn more. Every option starts unchecked, so people opt in.
Checkbox Example 01
<aegov-card appearance="solid" border-width="1" variant="neutral-min" size="sm" class="w-full max-w-sm">
<div class="flex items-start gap-3">
<span aria-hidden="true" class="flex size-10 shrink-0 items-center justify-center rounded-full border border-aeblack-100 text-aeblack-600">
<svg class="size-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor"><path d="M208,40H48A16,16,0,0,0,32,56v58.78c0,89.61,75.82,119.34,91,124.39a15.53,15.53,0,0,0,10,0c15.2-5.05,91-34.78,91-124.39V56A16,16,0,0,0,208,40Zm0,74.79c0,78.42-66.35,104.62-80,109.18-13.53-4.51-80-30.69-80-109.18V56H208ZM82.34,141.66a8,8,0,0,1,11.32-11.32L112,148.68l50.34-50.34a8,8,0,0,1,11.32,11.32l-56,56a8,8,0,0,1-11.32,0Z"/></svg>
</span>
<div>
<h2 id="privacy-settings-title" class="text-base font-semibold text-aeblack-800">Privacy settings</h2>
<p id="privacy-settings-desc" class="text-sm text-aeblack-600">Choose how this service uses your information.</p>
</div>
</div>
<aegov-separator gap="4" appearance="solid" variant="neutral-min"></aegov-separator>
<aegov-checkbox-group size="sm" aria-label="Privacy settings" aria-describedby="privacy-settings-desc">
<aegov-checkbox field-id="privacy-suggestions" name="privacy" value="suggestions" label="Personalised suggestions" class="block pb-3 font-semibold">
<span slot="hint" class="block space-y-1 font-normal">
<aegov-badge variant="primary" size="sm">Recommended</aegov-badge>
<span class="block">Use your service history to suggest relevant services and renewal reminders.</span>
<a href="#how-we-use-your-data" class="inline-block">How we use your data</a>
</span>
</aegov-checkbox>
<aegov-checkbox field-id="privacy-sharing" name="privacy" value="sharing" label="Share details with government entities" class="block pb-3 font-semibold">
<span slot="hint" class="block font-normal">Let other federal entities reuse details you have already provided, so you do not have to enter them again.</span>
</aegov-checkbox>
<aegov-checkbox field-id="privacy-analytics" name="privacy" value="analytics" label="Usage analytics" class="font-semibold">
<span slot="hint" class="block space-y-1 font-normal">
<span class="block">Share anonymous usage data to help improve this service.</span>
<a href="#privacy-policy" class="inline-block">Read the privacy policy</a>
</span>
</aegov-checkbox>
</aegov-checkbox-group>
</aegov-card>
Uses the UAE Design System web components. Load the theme, base CSS and component loader first. See installation.
Checkbox Example 02
A "tell us once" address change: option cards with a select-all control, and a locked card for the record that always updates. People tell the government once and choose who else should know.
Checkbox Example 02
<div class="w-full max-w-2xl px-4 md:px-0">
<aegov-card appearance="solid" border-width="1" variant="neutral-min">
<header class="space-y-2">
<aegov-badge variant="aegreen" size="sm">Address change</aegov-badge>
<h2 class="text-h5 md:text-h4 text-aeblack-800">You have moved. Who should we tell?</h2>
<p class="text-base text-aeblack-600">Update your address with government services in one go. We only share it with the services you choose.</p>
</header>
<div class="mt-5 flex items-start gap-3 rounded-lg bg-whitely-50 p-4">
<svg class="mt-0.5 size-5 shrink-0 text-primary-600" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" aria-hidden="true"><path d="M128,64a40,40,0,1,0,40,40A40,40,0,0,0,128,64Zm0,64a24,24,0,1,1,24-24A24,24,0,0,1,128,128Zm0-112a88.1,88.1,0,0,0-88,88c0,31.4,14.51,64.68,42,96.25a254.19,254.19,0,0,0,41.45,38.3,8,8,0,0,0,9.18,0A254.19,254.19,0,0,0,174,200.25c27.45-31.57,42-64.85,42-96.25A88.1,88.1,0,0,0,128,16Zm0,206c-16.53-13-72-60.75-72-118a72,72,0,0,1,144,0C200,161.23,144.53,209,128,222Z"/></svg>
<div class="min-w-0 grow">
<p class="text-sm text-aeblack-500">Your new address, from 1 December 2026</p>
<p class="text-base font-medium text-aeblack-800">Villa 14, Street 23, Al Barsha 2, Dubai</p>
<a href="#change-address" class="mt-1 inline-block text-sm font-medium">Change address</a>
</div>
</div>
<aegov-checkbox-group label="Services to update" hint="Choose at least one. You can update the others later from your account." appearance="list" is-required="true" class="mt-6 block">
<aegov-checkbox field-id="move-all" is-check-all="true" label="Update all services" hint="Select every service below in one step."></aegov-checkbox>
<aegov-checkbox field-id="move-residency" name="services" value="residency" label="Residency record" hint="Always updated, so official letters reach you." is-checked="true" is-disabled="true"></aegov-checkbox>
<aegov-checkbox field-id="move-vehicle" name="services" value="vehicle" label="Vehicle registration" hint="Renewal reminders and notices go to your new address."></aegov-checkbox>
<aegov-checkbox field-id="move-health" name="services" value="health" label="Health insurance" hint="See clinics and pharmacies close to your new home."></aegov-checkbox>
<aegov-checkbox field-id="move-utilities" name="services" value="utilities" label="Electricity and water" hint="Move your account and book a final meter reading."></aegov-checkbox>
<aegov-checkbox field-id="move-school" name="services" value="school" label="School records" hint="Keep school transport and letters about your children up to date."></aegov-checkbox>
<aegov-checkbox field-id="move-post" name="services" value="post" label="Government post" hint="Send official letters and parcels to your new address."></aegov-checkbox>
</aegov-checkbox-group>
<div class="mt-6 flex items-start gap-2 text-sm text-aeblack-600">
<svg class="mt-0.5 size-4 shrink-0" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" aria-hidden="true"><path d="M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96ZM208,208H48V96H208V208Z"/></svg>
<p>Your address is only shared with the services you select. Each service confirms the change by SMS.</p>
</div>
<div class="mt-6 flex flex-col-reverse gap-3 border-t border-aeblack-100 pt-6 sm:flex-row sm:justify-end">
<aegov-button variant="neutral-max" size="base" appearance="outline">Back</aegov-button>
<aegov-button variant="primary" size="sm lg:base xl:lg">Update selected services</aegov-button>
</div>
</aegov-card>
</div>
Uses the UAE Design System web components. Load the theme, base CSS and component loader first. See installation.
Checkbox Example 03
An appointment step that asks about support before the visit: quick-pick pills for accessibility needs and a list for how to confirm the booking. People say it once and it is ready when they arrive.
Checkbox Example 03
<div class="w-full max-w-2xl space-y-6 px-4 md:px-0">
<header class="space-y-2">
<p class="text-sm font-medium text-primary-700">Book an appointment: step 2 of 3</p>
<h2 class="text-h5 md:text-h4 text-aeblack-800">Support for your visit</h2>
<p class="text-base text-aeblack-600">Tell us what would make your visit easier. We will have it ready when you arrive, so you do not need to explain again at the counter.</p>
</header>
<ul class="flex flex-col gap-3 rounded-lg bg-whitely-50 p-4 sm:flex-row sm:flex-wrap sm:gap-x-8" aria-label="Your appointment">
<li class="flex items-center gap-2 text-sm text-aeblack-700">
<svg class="size-5 shrink-0 text-primary-600" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" aria-hidden="true"><path d="M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,48v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80H48V48ZM208,208H48V96H208V208Z"/></svg>
Tuesday 8 December 2026, 10:30 am
</li>
<li class="flex items-center gap-2 text-sm text-aeblack-700">
<svg class="size-5 shrink-0 text-primary-600" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" aria-hidden="true"><path d="M128,64a40,40,0,1,0,40,40A40,40,0,0,0,128,64Zm0,64a24,24,0,1,1,24-24A24,24,0,0,1,128,128Zm0-112a88.1,88.1,0,0,0-88,88c0,31.4,14.51,64.68,42,96.25a254.19,254.19,0,0,0,41.45,38.3,8,8,0,0,0,9.18,0A254.19,254.19,0,0,0,174,200.25c27.45-31.57,42-64.85,42-96.25A88.1,88.1,0,0,0,128,16Zm0,206c-16.53-13-72-60.75-72-118a72,72,0,0,1,144,0C200,161.23,144.53,209,128,222Z"/></svg>
Customer Happiness Centre, Abu Dhabi
</li>
</ul>
<aegov-checkbox-group label="What support do you need?" hint="Choose any that apply. You can leave this blank." appearance="pills" orientation="horizontal" class="block">
<aegov-checkbox field-id="visit-wheelchair" name="support" value="wheelchair" label="Wheelchair access"></aegov-checkbox>
<aegov-checkbox field-id="visit-sign" name="support" value="sign-language" label="Sign language interpreter"></aegov-checkbox>
<aegov-checkbox field-id="visit-loop" name="support" value="hearing-loop" label="Hearing loop"></aegov-checkbox>
<aegov-checkbox field-id="visit-print" name="support" value="large-print" label="Large-print documents"></aegov-checkbox>
<aegov-checkbox field-id="visit-quiet" name="support" value="quiet" label="Quiet waiting area"></aegov-checkbox>
<aegov-checkbox field-id="visit-time" name="support" value="extra-time" label="Extra time with an employee"></aegov-checkbox>
<aegov-checkbox field-id="visit-guide" name="support" value="guide" label="Help finding the counter"></aegov-checkbox>
<aegov-checkbox field-id="visit-companion" name="support" value="companion" label="Bringing a companion"></aegov-checkbox>
</aegov-checkbox-group>
<aegov-form-field class="block">
<aegov-label>Anything else we should know?</aegov-label>
<aegov-textarea name="support-notes" hint="Optional. For example, a medical device you will bring." maxlength="300" placeholder="Tell us in your own words"></aegov-textarea>
</aegov-form-field>
<aegov-checkbox-group label="How should we confirm your booking?" hint="We will also send a reminder the day before." appearance="list" is-required="true" class="block">
<aegov-checkbox field-id="confirm-sms" name="confirm" value="sms" label="Text message" hint="To +971 50 *** 4521" is-checked="true"></aegov-checkbox>
<aegov-checkbox field-id="confirm-email" name="confirm" value="email" label="Email" hint="To f.***@example.ae"></aegov-checkbox>
<aegov-checkbox field-id="confirm-uaepass" name="confirm" value="uaepass" label="UAE PASS notification" hint="In the UAE PASS app on your phone"></aegov-checkbox>
</aegov-checkbox-group>
<div class="flex flex-col-reverse gap-3 border-t border-aeblack-100 pt-6 sm:flex-row sm:justify-end">
<aegov-button variant="neutral-max" size="base" appearance="outline">Back</aegov-button>
<aegov-button variant="primary" size="sm lg:base xl:lg">Continue to review</aegov-button>
</div>
</div>
Uses the UAE Design System web components. Load the theme, base CSS and component loader first. See installation.
Radio Example 01
A one-tap satisfaction question on a confirmation screen. Pills keep a five-point scale short enough to answer in a second, at the moment the experience is still fresh.
Radio Example 01
<div class="w-full max-w-xl px-4 md:px-0">
<aegov-card appearance="solid" border-width="1" variant="neutral-min">
<div class="flex items-start gap-3">
<svg class="size-8 shrink-0 text-aegreen-600" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" aria-hidden="true"><path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"/></svg>
<div class="space-y-1">
<h2 class="text-lg font-semibold text-aeblack-800">Your request has been submitted</h2>
<p class="text-sm text-aeblack-600">Reference number <strong class="font-semibold text-aeblack-800">REQ-0000000</strong>. We have sent the details to your email.</p>
</div>
</div>
<aegov-separator gap="5" appearance="solid" variant="neutral-min"></aegov-separator>
<aegov-radio-group name="satisfaction" label="How satisfied are you with this service?" hint="Your answer is anonymous and helps us improve." appearance="pills" orientation="horizontal" size="sm" class="block">
<aegov-radio field-id="sat-1" value="1" label="Very unhappy"></aegov-radio>
<aegov-radio field-id="sat-2" value="2" label="Unhappy"></aegov-radio>
<aegov-radio field-id="sat-3" value="3" label="Neutral"></aegov-radio>
<aegov-radio field-id="sat-4" value="4" label="Happy"></aegov-radio>
<aegov-radio field-id="sat-5" value="5" label="Very happy"></aegov-radio>
</aegov-radio-group>
<div class="mt-6 flex flex-col-reverse gap-3 sm:flex-row sm:items-center sm:justify-between">
<aegov-button variant="neutral-max" size="base" appearance="link">Skip</aegov-button>
<aegov-button variant="primary" size="sm lg:base xl:lg">Send feedback</aegov-button>
</div>
</aegov-card>
</div>
Uses the UAE Design System web components. Load the theme, base CSS and component loader first. See installation.
Radio Example 02
Choosing how to receive a certificate. Option cards put timing and conditions next to each choice, so people can compare speed and effort before they pick.
Radio Example 02
<div class="w-full max-w-3xl space-y-6 px-4 md:px-0">
<header class="space-y-1">
<p class="text-sm font-medium text-primary-700">Certificate of good conduct</p>
<h2 class="text-h5 md:text-h4 text-aeblack-800">Your certificate is ready</h2>
</header>
<aegov-radio-group name="delivery" label="How would you like to receive it?" appearance="cards" orientation="horizontal" is-required="true" class="block">
<aegov-radio field-id="delivery-download" value="download" label="Download now" hint="A digital copy, verified with a QR code. Ready straight away." is-checked="true" class="min-w-0 grow basis-full sm:basis-0"></aegov-radio>
<aegov-radio field-id="delivery-courier" value="courier" label="Courier to my address" hint="A printed copy in 1 to 2 working days. A delivery fee applies." class="min-w-0 grow basis-full sm:basis-0"></aegov-radio>
<aegov-radio field-id="delivery-collect" value="collect" label="Collect in person" hint="From a Customer Happiness Centre, from the next working day." class="min-w-0 grow basis-full sm:basis-0"></aegov-radio>
</aegov-radio-group>
<div class="flex flex-col-reverse gap-3 border-t border-aeblack-100 pt-6 sm:flex-row sm:justify-end">
<aegov-button variant="neutral-max" size="base" appearance="outline">Back</aegov-button>
<aegov-button variant="primary" size="sm lg:base xl:lg">Continue</aegov-button>
</div>
</div>
Uses the UAE Design System web components. Load the theme, base CSS and component loader first. See installation.
Radio Example 03
A first question that shapes the rest of the form. A list keeps three clear choices, and each hint says what the person will need, so nobody gets stuck halfway through.
Radio Example 03
<div class="w-full max-w-xl space-y-6 px-4 md:px-0">
<header class="space-y-1">
<p class="text-sm font-medium text-primary-700">Step 1 of 4</p>
<h2 class="text-h5 md:text-h4 text-aeblack-800">Apply for a service certificate</h2>
</header>
<aegov-radio-group name="applicant" label="Who is this application for?" hint="This decides which details we ask for next." appearance="list" is-required="true" class="block">
<aegov-radio field-id="applicant-self" value="self" label="Myself" hint="We will fill in your details from UAE PASS."></aegov-radio>
<aegov-radio field-id="applicant-child" value="child" label="My child under 18" hint="You will need your child's Emirates ID number."></aegov-radio>
<aegov-radio field-id="applicant-represent" value="represent" label="Someone I represent" hint="You will need a valid power of attorney to upload."></aegov-radio>
</aegov-radio-group>
<aegov-button variant="primary" size="sm lg:base xl:lg" class="block">Continue</aegov-button>
</div>
Uses the UAE Design System web components. Load the theme, base CSS and component loader first. See installation.