Skip to content

Search

Articles, tools, solutions and knowledge base guides

Start typing to search across articles, tools and apps.

Component States Builder

Interaction states

Interaction states drawn as a graph around the live component, checked against WCAG 2.2 and exported as HTML, CSS and JavaScript.

Web tool Web
Official product page Publisher: POLPROG
Official product page
9
Component families
11
Component states
5
Ready sets
0
Data sent to a server
01 / Component States Builder

About

A graph of states surrounds the live component. Every state it can take, from hover and keyboard focus to loading, success and error, is drawn as a node on a light and a dark background, and the edges name the events that lead to it. A pinned node puts its state on the plinth, and real interaction lights the edge it travels.

Nine component families with fourteen components: buttons with text, with an icon or with an icon only, single and multi line text fields, checkboxes and radio buttons, a switch, a select list, tabs and navigation, a card, a link and a field with validation. Hover, focus, active and visited are pseudo-classes simulated in the nodes; disabled, loading, success, error and selected are set on the element with the same attributes as in the export.

The WCAG 2.2 check measures the contrast of text (1.4.3) and of interface parts (1.4.11) on both backgrounds, the focus ring (at least 3:1 and 2 px), the target size measured on the component (2.5.8), reduced motion, status messages, the accessible name and whether an error relies on colour alone. A failing colour gets the nearest one that passes, applied with one click.

The export holds semantic HTML, CSS with whole-word BEM class names, readable JavaScript for loading and results, keyboard support in tabs and field validation, and JSON that can be imported again. Hover sits in @media (hover: hover), the dark theme in prefers-color-scheme and reduced motion in prefers-reduced-motion.

02 / Use case

What it solves

The problem
  • Hover, focus and error states designed one at a time, never seen together
  • Focus rings and error colours that lose their contrast on a dark background
  • Hover styles that stay stuck on a touch screen after a tap
The outcome
  • Every state of a component at once, on light and on dark
  • Contrast, focus ring and target size checked against WCAG 2.2
  • HTML, CSS and JavaScript identical to what the preview draws
Who it is for
  • Front-end developers building buttons and form fields
  • Designers defining interaction states in a design system
  • People checking focus and contrast for accessibility
03 / Key Features

Key Features

The most important capabilities, explained in practical terms.

A graph of states

Every state of the component as a node around the live component, on a light and a dark background, with the events that lead to it on the edges.

Nine component families

Buttons, text fields, checkboxes and radio buttons, switches, select lists, tabs and navigation, cards, links and a field with validation.

Simulated and real states

Hover, focus, active and visited simulated in the nodes; disabled, loading, success, error and selected set on the element as in the export.

WCAG 2.2 check

Contrast on both backgrounds, the focus ring, the measured target size, reduced motion, status messages and the accessible name, with a one-click fix.

Five ready sets and two variants

Web application, corporate, developer console, editorial and high contrast, with variants A and B compared as chains of states.

Hover only where a pointer is

The hover rule sits in @media (hover: hover), so a touch screen never keeps it after a tap. A preview width of 768 px or less shows the touch case.

Clean code export

Semantic HTML, CSS with BEM class names, readable JavaScript and JSON that loads the configuration again.

04 / Download

Product access

A clear path from the official source to your first successful workflow.

Choose the right platform

Use one of the official links available for your device or browser.

Install or open

Follow the store instructions or open the web application. No third-party installers.

Configure and begin

Review the options, choose your preferences and start with the core workflow.

Official access options
05 / Technology

Technology behind the product

A transparent look at the core technologies used to build and maintain this product.

JavaScript
Css
06 / Security

Privacy & Security

The components are drawn and the code written in your browser. The tool calls no API endpoint. Settings and recent configurations are kept only in this browser's storage (one entry, polprog_studios) and in a link you copy yourself. An imported JSON file is read as data and never run.

No account, no sign-up
The components and the code are produced in the browser
The tool sends no settings to a server
Settings kept only in this browser