Logo van Ux Modals And Dialogs

Ux Modals And Dialogs

Organisatie
Uxcel-Lab
ux-modals-and-dialogs

Modals, dialoogvensters, waarschuwingen, pop-overs en bottom sheets ontwerpen of beoordelen: bepaal wanneer het gerechtvaardigd is om gebruikers te onderbreken en pas best practices toe voor sluiten, titels, knoppen en focus. Activeer deze skill wanneer de gebruiker vraagt om een modal, dialoogvenster, pop-up, overlay, bevestiging, waarschuwing, toestemmingsverzoek, lightbox of bottom sheet te ontwerpen of beoordelen, of vraagt of iets überhaupt een modal moet zijn.

Add to TypingMind

Overzicht

UitgeverUxcel-Lab
Repositoryproduct-skills
Skillnaamux-modals-and-dialogs
Sterren
35
Forks
8
Meegeleverde bestanden
Alleen instructies
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Compleet zonder extra bestanden

    Alles wat het model nodig heeft, staat in de instructies — geen extra bestanden om te synchroniseren.

  • Open source

    Gepubliceerd door Uxcel-Lab op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Ux Modals And Dialogs in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/Uxcel-Lab/product-skills/tree/main/ux/components/modals-and-dialogs
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Uxcel-Lab/product-skills.git /tmp/product-skills
mkdir -p .claude/skills
cp -r /tmp/product-skills/ux/components/modals-and-dialogs .claude/skills/ux-modals-and-dialogs
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Ux Modals And Dialogs in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Ux Modals And Dialogs automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Ux Modals And Dialogs niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

Modals & Dialogs Skill

How this skill behaves (read first)

This is a generative skill. The default failure modes: interrupting for everything (modals for success messages, tips, newsletters — attention spent like it's free), trapping users (no visible close, no Esc, stacked modals), and vague choices ("Are you sure?" → Yes/No). A modal takes the whole interface hostage — that's justified only in high-stakes moments, and the price is paid back with crystal-clear purpose and effortless exit. This skill gates:

  1. Gate the interruption itself — is a modal even justified here? The most important decision happens before any design.
  2. Apply the always-true core — purpose in the title, explicit buttons, easy dismissal, focus management.
  3. Surface the type and timing decisions (popup/fullscreen/popover/bottom sheet, permission priming) with trade-offs.

Then it hands off to ux-heuristics-audit, ux-accessibility-audit, ux-aesthetics-audit, ux-microcopy-audit, and ux-dark-patterns-audit for validation.


Step 0 — Gate the interruption (the decision that matters most)

A modal blocks everything. It earns that only for high-stakes moments:

  • Confirming destructive or irreversible actions (delete account, discard draft) — show impact ("12 files will be deleted").
  • Critical errors or warnings (system restart, unsaved changes at risk).
  • Information required to continue the current task (login to save, payment details).

Everything else — success messages, tips, FYIs, promotions — uses non-modal patterns: inline messages, toasts, banners, popovers. Also establish:

  • Who triggers it? User-initiated modals (clicked a button) are expected; system-initiated modals (timed popups, upgrade nags) interrupt without warning — avoid unless truly urgent (session expiry, critical update).
  • Timing — never interrupt high-stakes flows in progress (mid-checkout is the classic crime).
  • Platform — desktop alert vs. iOS alert / Android dialog conventions; bottom/action sheets for mobile action lists.

If the content fails the high-stakes test, stop designing a modal and recommend the inline/toast alternative.


The always-apply core (correct for every modal that survives the gate)

Purpose, title, buttons

  • The title carries the whole message — users skim or skip body text. "Discard draft?" not "Warning." Body text adds the why and context; nothing vital lives only in the body.
  • Explicit button labels answering the title: ❌ "Yes" / "No" / "Cancel" ✅ "Discard draft" / "Keep editing." Users must know what each button does without reading anything else.
  • Maximum two action buttons. A third ("Learn more") leaks users out of the decision.
  • Never blame or shame in opt-out labels ("No thanks, I hate saving money" → dark-patterns flag).

Dismissal is a right, not a feature

  • Multiple visible exits: Close/Cancel button + the × in the corner + Esc on desktop / Back on mobile.
  • Click/tap outside closes it — when no entered data would be lost; suppress only when dismissal would destroy work.
  • Never stack modals. A modal on a modal is a hostage situation with extra steps.

Focus and attention mechanics

  • Dark overlay behind the modal — focuses attention, blocks outside interaction, doubles as a close target.
  • Keyboard focus moves into the modal on open (onto the primary action); all controls keyboard-reachable.
  • Centered placement — dead-center on mobile; horizontally centered and slightly above center on desktop (stable under window resizing).
  • Critical alerts look critical: red accents and an alert icon for destructive/urgent confirmations, so habituated users don't dismiss on autopilot.

The context-dependent decisions (surface, don't auto-apply)

DecisionApply whenAvoid / adapt whenDefault recommendation
Popup modalThe standard high-stakes interrupt over dimmed contentContent that needs a whole pageDefault modal type
Fullscreen modalComplex focused tasks: multi-step forms, payments, T&Cs, mobile spotlight momentsSimple confirmations (overkill); anything users may need to escape fast — make dismissal obviousOnly when the task genuinely fills a screen
PopoverExtra detail/options anchored to an element, without blocking the pageCritical information (too easy to miss)The non-modal default for contextual help
LightboxImage/video magnification with navigation, captions, zoomNon-media contentMedia-rich products only
Bottom / action sheet (mobile)Lists of related actions or share targets, per OS conventionCritical confirmations (use an alert/dialog)Android bottom sheet / iOS action sheet for action lists
Success feedbackInline or on-page statesSuccess modals — interrupting to say "it worked"Modal success only if users must acknowledge before continuing
Permission requestsIn context, at the moment the feature needs it; primed with a pre-permission explainer; one permission at a time; a compelling reason (+81% grant likelihood)At first launch, in batches, with "Recommended" pressure labels, or mid-taskPrime → contextual ask → graceful path to reverse a denial
System-initiated modalsTruly urgent: session expiry, security, data lossSubscription nags, timed promos, rating begsAlmost never; use banners/badges instead

Validate the result (orchestration)

Hand-offs name each lens by its installable skill name. Invoke one only if that skill is installed; if it isn't, this skill's own core already carries these rules — proceed without it rather than blocking.

After generating or revising, hand the result to the audit lenses rather than declaring it done. These are candidate lenses — posture is set by docs/orchestration-policy.md, or route the whole thing through ux-design-review. Here, heuristics, microcopy, and dark-patterns are Tier A (auto-run); accessibility, aesthetics, and mobile-responsiveness are Tier B (offered) — under an existing design system aesthetics is suppressed and accessibility narrows to usage; mobile-responsiveness applies only on mobile. If the user invoked this skill for one specific thing, respect that scope.

  • ux-heuristics-audit (Tier A) — user control and freedom (exits), error prevention (explicit confirmations), match to expectations (platform conventions).
  • ux-accessibility-audit (Tier B — offer; narrow under a design system) — focus trap correctness, keyboard dismissal, screen-reader announcement, contrast of overlay content.
  • ux-aesthetics-audit (Tier B — offer; suppress under a design system) — modal visual hierarchy, overlay treatment, alert-styling restraint.
  • ux-microcopy-audit (Tier A) — title clarity, button explicitness, body brevity, permission-reason wording.
  • ux-dark-patterns-audit (Tier A) — this skill's interruptions are prime dark-pattern territory: nagging system modals, shame opt-outs, permission pressure, hard-to-find dismissal.
  • ux-mobile-responsiveness-audit (Tier B — offer; applies only on mobile) — when the context is mobile: sheet conventions, dismissal gestures, fullscreen behavior.

If the audits surface a conflict (e.g., growth wants a signup modal on page load vs. user control), resolve back toward the primary task: the user was doing something — the modal must either protect that task or get out of its way.


Common do/don't patterns

❌ Don't✅ Do
Modal for a success message or a tipInline state / toast; modals for high-stakes only
Timed subscription popup mid-readingUser-initiated modals; system interrupts only for urgency
"Are you sure?" → Yes / No"Discard draft?" → "Discard" / "Keep editing"
Three+ buttons including "Learn more"Two actions, aligned to the title
No × , no Esc, no outside clickClose button + Esc/Back + outside click (when safe)
Modal opens on top of another modalOne modal at a time, ever
Vital info buried in body textThe title carries the message
Permission batch on first launchPrimed, contextual, one-at-a-time requests with reasons
"No thanks, I like missing out"Neutral, respectful opt-out labels
Focus stays on the page behindFocus moves into the modal, onto the primary action
Ship without checkingHand off to heuristics + accessibility + aesthetics + microcopy + dark-patterns

Source lessons (Uxcel)

Veelgestelde vragen

Wat doet de AI-skill Ux Modals And Dialogs?

Modals, dialoogvensters, waarschuwingen, pop-overs en bottom sheets ontwerpen of beoordelen: bepaal wanneer het gerechtvaardigd is om gebruikers te onderbreken en pas best practices toe voor sluiten, titels, knoppen en focus. Activeer deze skill wanneer de gebruiker vraagt om een modal, dialoogvenster, pop-up, overlay, bevestiging, waarschuwing, toestemmingsverzoek, lightbox of bottom sheet te ontwerpen of beoordelen, of vraagt of iets überhaupt een modal moet zijn.

Waarom Ux Modals And Dialogs gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Ux Modals And Dialogs bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Ux Modals And Dialogs in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/Uxcel-Lab/product-skills/tree/main/ux/components/modals-and-dialogs. TypingMind leest het bestand SKILL.md en installeert het als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Ux Modals And Dialogs gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Ux Modals And Dialogs gebruiken?

Zoveel als je wilt. Je kunt Ux Modals And Dialogs gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Ux Modals And Dialogs gratis?

Ja. Deze skill is door Uxcel-Lab op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇