Skip to main content
ALEXY LINK

Modal 03

A form dialog for creating a project, with labelled fields, live validation and helper context.

Requirements

HTML, CSS, JavaScript

Dependencies

None

Usage

Copy index.html, styles.css and script.js into your project.

Typography: Inter, with a system sans-serif fallback.

About Modal 03

Modal 03 is a modal component in the Modal Components collection, available in HTML + CSS + JavaScript and React + TypeScript + Tailwind CSS. Last updated September 16, 2026.

  • modal
  • form

What the code includes

HTML + CSS + JavaScript

3 files: index.html, styles.css, script.js

  • Behavior is handled in script.js.
  • ARIA in the markup: role dialog; aria-modal, aria-labelledby, aria-describedby.
  • HTML elements used: section, form, ul, button, input, select, label, svg.
  • Keyboard keys handled: Escape, Tab.
  • Includes a prefers-reduced-motion rule for its animation.

React + TypeScript + Tailwind CSS

3 files: Modal03.jsx, Modal03.types.ts, Modal03.tailwind.css

  • Configurable through 6 props: open, clients, onCreate, onClose, busy, className.
  • Uses React hooks: useEffect, useId, useRef, useState.
  • ARIA in the markup: role dialog; aria-modal, aria-labelledby, aria-describedby, aria-invalid, aria-disabled.
  • HTML elements used: form, ul, button, input, select, label, svg.
  • Keyboard keys handled: Escape, Tab.
  • Includes a prefers-reduced-motion rule for its animation.
  • Responsive Tailwind breakpoints used: sm.
View all Modal Components (10)