Skip to content

harmony-modal-pattern

Skill for implementing a Harmony modal pattern using Harmony Modal components.

active
IDE:
claude
codex
vscode
Version:
1.0.0
Owner:pcorazao
harmony
react
modal
overlay
accessibility
ui
optum

Review fetch https://storybook-harmony.ofp-elr.optum.com/?path=/docs/patterns-modal--docs&e2e=1&globals=viewport:mastheadSidebar275

Overview

The Modal pattern is a temporary overlay dialog that focuses user attention on a single task or piece of information. It intentionally blocks interaction with the underlying page until the user completes or dismisses the modal, so it should be used sparingly.

This pattern composes a trigger control with Modal, Modal.Body, and Modal.Actions. Keep content concise, action-oriented, and scoped to one decision or short workflow.

Template Variants

With Content (./templates/with-content.tsx)

Use when: You need a focused confirmation, acknowledgement, or short workflow that requires explicit user action before returning to the page.

Components: trigger Button + Modal + Modal.Body + Modal.Actions

Best for: Destructive confirmations, short approval flows, simple data-entry tasks, or important informational dialogs that must interrupt the current page.

Usage

  • Launch the modal from a deliberate user action such as a button click.
  • Put the primary task or supporting content in Modal.Body.
  • Keep dismiss and completion actions in Modal.Actions.
  • If content can exceed the viewport, make the body region scrollable and keyboard reachable.

Templates

  • ./templates/with-content.tsx

Related Assets

Harmony Components

active

Reference for Harmony Design System React components including buttons, modals, panels, form controls, navigation, and data display elements.

claude
codex
vscode
harmony
components
react
ui
accessibility
+1

Owner: pcorazao

harmony-form-pattern

active

Build accessible healthcare forms using the Harmony Design System (@uhg-harmony/react). Provides component patterns, layout templates, and state management guidance for TextInput, DatePicker, Checkbox, Select, FormControl, and multi-step form flows. Use when creating React forms with Harmony components, fixing layout or accessibility issues, or scaffolding new healthcare intake forms.

claude
codex
vscode
harmony
react
forms
accessibility
healthcare
+2

Owner: pcorazao

harmony-app-layout-pattern

active

Skill for implementing a responsive app layout pattern using Harmony components.

claude
codex
vscode
harmony
react
layout
navigation
ui
+1

Owner: pcorazao

Optum Harmony Healthcare Demo App

experimental

Create a Harmony-based example healthcare application that showcases eligibility, claims, and remittance concepts using current Harmony skills, instructions, navigation, forms, and components.

claude
codex
vscode
harmony
react
healthcare
demo
optum

Owner: harmony-platform

Harmony Overview

active

Overview of the Harmony Design System — Optum's unified React component library combining UITK and UICL for building scalable, brand-compliant, and accessible healthcare web applications.

claude
codex
vscode
harmony
overview
react
design-system
optum

Owner: pcorazao

Harmony Setup

active

Setup guide for creating new projects with the Harmony Design System, including license keys, Node.js prerequisites, Artifactory NPM configuration, and React integration.

claude
codex
vscode
harmony
setup
react
artifactory
optum

Owner: pcorazao