Articles

Practical guides to UI details, with examples you can try and code you can inspect.

Button states: hover, focus, loading, success, and errorDesign clear button states with an interactive example, keyboard focus, loading feedback, and practical HTML, CSS, and JavaScript guidance.Animated buttons with HTML, CSS, and JavaScriptBuild purposeful button animation with CSS transitions, clear interaction states, reversible motion, and a reduced-motion alternative.How to add UI components to an AI coding projectGive an AI coding agent a clear UI task, select a real component, preserve its source files, and verify the result in your application.How to customize a UI component to match your designAdapt a ready-made UI component with color tokens, typography, spacing, and state checks while preserving its interaction and accessibility.Toggle, checkbox, or button: which should you use?Choose between a switch, checkbox, toggle button, and action button by the task, state, label, and expected behavior.Password inputs: visibility, requirements, and useful validationDesign a password input with a reveal control, readable requirements, and validation that explains its limits. Try two real Glass components.File upload feedback: selection, progress, and cancellationSeparate file selection from upload progress. Explore attachment and progress examples, then plan honest status, cancellation, and application integration.Sliders and number inputs: choosing values with controlChoose between a slider and exact numeric entry. Explore volume and price-range controls, units, steps, keyboard behavior, and application boundaries.Dropdown menus: actions, selection, and keyboard behaviorReview an action menu and a sort menu with real keyboard behavior. Understand focus, selected items, disabled actions, and application integration.Tabs and page navigation: switching content or moving through itDistinguish tab panels, section navigation, and page links. Try real tab and section-index examples with keyboard and reduced-motion checks.