Checkbox vs Radio vs Toggle
All three look like toggles, yet each sets a distinct user expectation.
Calling a component by its real name — Drawer, Segmented Control, Combobox, Skeleton — makes AI tools nail your layout on the first try. Click through 52 live interactive examples and assemble a ready-to-paste prompt.
Four steps from prompt to live site. Exact UI terminology saves 5–10 rounds of back-and-forth fixes.
Ask for a “Drawer” or “Segmented Control” instead of “side box” — AI hits the right pattern on try one.
Default, hover, focus, loading, error and empty states separate finished UI from raw AI output.
44px tap targets, zero horizontal overflow, Escape closes overlays and contrast passes in both themes.
Drop your folder or deploy straight via MCP — live over HTTPS in seconds.
Three pairs that cause most UX friction when picked interchangeably.
All three look like toggles, yet each sets a distinct user expectation.
Pick based on whether you should block the page and how much space the task needs.
Centered + dimmed: short focused step.
Side / bottom: filters, cart, tall forms.
Anchored, non-blocking: mini actions.
3–6 hover words only, never interactive.
The right indicator makes loading feel twice as fast and avoids layout shift.
No matching elements
Try another keyword (toast, modal, slider) or reset the filter.
Controls people use to enter data, toggle settings, filter lists and submit forms.
Primary action trigger with clear hierarchy: one Primary CTA, Secondary Ghost, Danger and Loading state.
Tip: Label buttons with concrete verbs (“Send request”, “Download PDF”) rather than vague “OK”.
Two-part button: instant default action on the left, chevron menu of secondary options on the right.
Tip: Great for “Publish” paired with secondary options like “Save draft” or “Schedule”.
Single-line field with persistent label, helpful placeholder and clear inline validation feedback.
Tip: Always keep a visible label above the field — placeholders disappear the moment someone types.
Masks typed characters with a show/hide eye toggle and an optional strength meter on sign-up.
Tip: Always include a show/hide toggle to prevent mistyped passwords on mobile.
Input with magnifier icon, one-tap clear button (×) and instant matching suggestions.
Tip: Reveal the clear button as soon as text is entered and support Escape to reset.
Square checkmark control for selecting zero, one or many independent items or accepting terms.
Tip: Best when selections take effect after clicking a submit or apply button.
Circular option control for picking strictly one choice out of 2–5 visible options.
Tip: Switch to a Select dropdown once options grow past 6–7 items.
Physical-style on/off switch that applies a setting immediately without a Save button.
Tip: Use for instant binary settings like Dark Mode, notifications or publishing visibility.
Compact picker for choosing one option from a long list like cities, categories or sort order.
Tip: Saves vertical space for 6+ choices; for 2–4 options, Radio buttons are faster to scan.
Text input paired with a filterable dropdown list — type to narrow down long catalogs.
Tip: Essential when a list has 15+ options (countries, cities, frameworks, tags).
Compact pill toggles for multi-select filtering or removable selected tags.
Tip: Ideal above catalogs, portfolios and article feeds for one-tap filtering.
Drag-along track for picking an approximate value like price ceiling, radius or opacity.
Tip: Always display the live numeric value beside the track (and allow typing when precision matters).
Minus (−) and plus (+) buttons flanking a number for quick quantity adjustments.
Tip: Faster and more thumb-friendly than typing for small counts like items, guests or seats.
Compact calendar grid for choosing booking dates or deadlines without format mistakes.
Tip: Great for upcoming weeks; for birthdates, direct numeric input is much faster.
Dashed upload area supporting drag-and-drop plus click-to-browse with file preview.
Tip: State accepted formats and max file size up front so users aren’t surprised by rejections.
Six segmented digit cells for email or SMS verification codes with auto-advance.
Tip: Always support pasting the full 6-digit code in one go and Backspace stepping backward.
Confirm actions, show loading progress, warn before destructive steps and explain empty states.
Brief floating confirmation in the screen corner (“Saved”) that dismisses itself after 3–4 seconds.
Tip: Never hide critical errors in a Toast — users may miss it before it disappears.
Inline status banner inside the page for persistent notices, warnings or errors.
Tip: Unlike a Toast, an Alert stays visible until resolved or explicitly dismissed.
Short text label shown on hover or keyboard focus to explain an icon or metric.
Tip: Keep it brief and non-interactive (no links or buttons inside — use a Popover for those).
Floating card anchored to a button that can hold links, toggles or a mini form.
Tip: Lighter than a Modal: doesn’t block the whole viewport and closes on outside click.
Centered overlay over a dimmed backdrop that focuses attention on one self-contained task.
Tip: Use sparingly; always support Close button, Escape key and backdrop dismissal.
Short safeguard dialog before destructive actions (“Delete site?”) with explicit verb CTA.
Tip: Name the danger button after the action (“Delete”), never generic “Yes”.
Compact animated ring for brief waits (1–3 s) when total progress isn’t known.
Tip: Best inside submit buttons; prefer a Skeleton loader for full cards or page layouts.
Determinate bar filling from 0% to 100% so users know how much work remains.
Tip: Essential for file uploads, checklists, onboarding steps and quota meters.
Low-contrast wireframe mimicking the upcoming card layout while data loads.
Tip: Makes pages feel faster and prevents layout shift (CLS) when real content swaps in.
Helpful screen when a list, inbox or search has zero items — with icon, explanation and next action.
Tip: AI tools frequently forget this state, leaving an awkward blank box for first-time users.
Structure cards, tables, galleries and timelines so screens stay calm and scannable.
Self-contained container grouping an image, title, concise description and action.
Tip: Limit each card to 3–4 data points and keep consistent image ratios across grids.
Vertically stacked headings that smoothly expand hidden answers — classic for FAQs and specs.
Tip: Don’t hide key selling points inside accordions; keep core benefits visible right away.
Horizontal media gallery or testimonial strip with prev/next controls and dot indicators.
Tip: Avoid aggressive auto-advance and never bury critical information on slide 4.
Hero tile Asymmetric grid of varied card spans (2×1, 1×1, 1×2) to showcase product highlights with visual rhythm.
Tip: Give the largest cell to your hero feature with visual media; use small cells for punchy stats.
| Plan | |
|---|---|
| Free | $0 |
| Start | $5 |
| Pro | $15 |
Structured rows and columns with clickable column sorting and horizontal scroll on narrow screens.
Tip: Right-align numeric columns with font-variant-numeric: tabular-nums for effortless scanning.
Circular portrait or initials fallback, often paired with an online status dot or overlapping team stack.
Tip: Always include an initials fallback so broken or missing photos never look empty.
Compact label for status (“Live”, “Draft”), category tags or unread notification counters.
Tip: Keep it to 1–2 badges per card — stacked rows of colorful pills quickly look cluttered.
Vertical chronological track for order tracking, deployment history or product milestones.
Tip: Clearer than a plain bullet list whenever sequence and current status matter.
Lightweight CSS motion with zero heavy libraries — responsive, subtle and prefers-reduced-motion safe.
Silky reveal of variable-height content using pure CSS grid-template-rows: 0fr → 1fr.
Tip: Eliminates janky max-height hacks and JS height measurements in expandable panels.
Subtle diagonal light sweep across placeholders signaling live background loading.
Tip: Always disable the sweep under prefers-reduced-motion: reduce, falling back to a calm fill.
Seamless horizontal ribbon of partner logos, stacks or quotes that pauses on hover.
Tip: Fade left/right edges with CSS mask-image and pause on hover or reduced-motion.
Subtle 2–3px elevation and crisp border tint on pointer hover — signals clickability cleanly.
Tip: Animate transform and border-color only for effortless 60fps transitions without layout jank.
Scroll inside this mini pane to watch the hairline reading progress bar track your position.
Great for long guides: 3px tall, calm and unobtrusive.
Reached the end — the bar hits 100%.
Hairline top bar tracking scroll depth through long guides, articles or case studies.
Tip: Gives readers quiet orientation on long-form pages without adding text clutter.
Animated SVG checkmark draw (stroke-dashoffset) with subtle sparkle burst on copy or submit.
Tip: Delivers gratifying tactile confirmation without interrupting the user with a modal.
Click “+ Add to prompt” on any component above — or load a preset below. The prompt lists exact UI names plus all states (hover, focus, loading, error, empty) and mobile responsiveness.
Run through these checks after your AI builds a page — and compile any unchecked items into a single follow-up prompt.
What every visitor notices in the first 5 seconds.
What separates a polished product from raw AI scaffolding.
Small touches that make an interface feel effortless.
When every button is bright, none stands out. Keep one Primary CTA per section and style secondary actions softly.
Toggles apply instantly; Checkboxes wait for Save/Submit. Using the wrong one breaks user expectations.
AI loves happy-path mock data and forgets what shows when search returns zero items or a request fails.
Toasts vanish after 3 seconds. Put persistent errors and validation warnings in an inline Alert instead.
The hint disappears the instant someone types, making forms painful to review before submitting.
Tabs or disclosures that abruptly shrink/grow shift the entire page underneath. Lock stage height or transition smoothly.
Nested popups break keyboard focus and feel claustrophobic on mobile. Use steps or a Drawer instead.
Many visitors enable reduced motion at the OS level — always include a prefers-reduced-motion media query.
Building a full site with AI? See the step-by-step AI website guide and publish checks.
AI models are trained on design systems and component specs. Asking for a “Drawer” or “Segmented Control” instead of a “side box” gets clean layout, keyboard handling and Escape dismissal on the first try.
Use a Modal for focused, short interruptions in the center; a Drawer when you need tall scrolling space for filters, carts or forms; and a Popover for lightweight anchored controls that shouldn’t dim the page.
No. Every one of the 52 live examples on this page runs on lightweight CSS and vanilla JavaScript with zero runtime dependencies — keeping your static site fast on Tuqo.
Drag the folder onto tuqo.dev/drop for an instant 24-hour link without signing up, or connect your AI over MCP to deploy directly to a permanent URL with free HTTPS.
Drag your folder into Drop with no signup or connect your AI via MCP. Free HTTPS, fast serving and publish checks on every plan.
Backdrop dims the page so focus stays on one task. Press Escape, click × or click outside — focus returns to the trigger button.
A clear Confirmation Dialog names what will be removed and labels the red button with an explicit verb (“Delete”), never generic “Yes”.
Ideal for filters, shopping carts and settings: gives full viewport height without leaving the current page.