preact

Build accessible Preact + htm UI components with keyboard-first patterns and ARIA roles.

Updated Apr 19, 2026
One-click install
npx skills add https://github.com/qol-tools/qol-skills --skill preact-qol-tools
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: preact
Source: https://github.com/qol-tools/qol-skills/tree/main/plugins/qol-dev-conventions/skills/preact
Command: npx skills add https://github.com/qol-tools/qol-skills --skill preact-qol-tools

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The Preact + htm development pattern guide helps teams avoid JSX and boilerplate while ensuring accessibility and consistent component structure.

Core Features & Use Cases

  • Keyboard-first interaction patterns, ARIA roles, and focus-trapping to build accessible components.
  • Icon component guidelines, dissolve/transition utilities, and a global toast system for user feedback.
  • Guidance for patterns like custom inputs, routers guards, and provider state persistence across remounts for robust UIs.

Quick Start

Start by wiring up a keyboard-first Preact + htm pattern in a sample component to validate focus trap and accessible interactions.

Frequently Asked Questions about preact

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build accessible Preact components with keyboard-first interaction patterns?

Build accessible Preact components by enforcing keyboard-first interaction patterns, applying ARIA roles, and implementing focus trapping to ensure full keyboard operability and screen reader compatibility.

How do I manage focus trapping in Preact without JSX?

Manage focus trapping in Preact without JSX by using the htm tagged template library, applying dedicated focus-trap guidelines to constrain keyboard navigation within modals and interactive UI components.

Can I use htm with Preact to avoid JSX boilerplate while maintaining accessibility?

Use htm with Preact to avoid JSX boilerplate while maintaining accessibility by following component design guidelines that map htm templates to ARIA roles and keyboard-first input handling.

What is the best way to implement a global toast system in Preact?

Implement a global toast system in Preact by utilizing a centralized toast component that manages user feedback notifications and handles state persistence across component remounts.

How do I persist provider state across remounts in a Preact application?

Persist provider state across remounts in a Preact application by applying dedicated provider state persistence recommendations, ensuring robust UI state recovery when components unmount and re-render.

Does Preact support guarded routes and dissolve transition effects?

Preact supports guarded routes and dissolve transition effects through dedicated UI pattern guidelines, enabling custom router guards for access control and smooth dissolve utilities for component transitions.