Engineering Tools for AI

编程

页面行为用的 UI 交互术语

用于描述按钮、菜单、表单、搜索、键盘操作与反馈状态的可搜索参考。

47 个项目

指针与触控

Click

Click

触发/状态onClick

含义

A pointer action where the user presses and releases a mouse button on an element.

预期行为

Use click for actions such as opening menus, submitting buttons, selecting items, or navigating with links.

请求示例

When the menu button is clicked, open the menu panel.

指针与触控

Tap

Tap

触发/状态touch / pointer

含义

A touch-screen action where the user touches and releases an element.

预期行为

Tap should generally do the same important work as click on phones and tablets.

注意

Hover-only behavior is unreliable on touch devices.

请求示例

Make the category menu open by tap instead of hover on mobile.

指针与触控

Hover

Hover

触发/状态:hover

含义

The state when a mouse pointer is over an element.

预期行为

Hover can preview affordance with color, underline, background, or shadow changes.

注意

Do not make essential actions depend only on hover.

请求示例

Change the menu item background when it is hovered.

指针与触控

Long press

Long press

触发/状态touch hold

含义

A touch action where the user holds a finger on an element for a longer moment.

预期行为

Long press is often used for secondary actions, but it is less discoverable than a visible button.

注意

Avoid long press as the only way to access important functionality.

请求示例

Do not hide essential copy actions behind long press only.

指针与触控

Drag

Drag

触发/状态pointerdown + pointermove

含义

A pointer action where the user holds and moves an element or selection.

预期行为

Drag interactions need clear handles, boundaries, and fallback controls when precision matters.

请求示例

Add a visible handle if a panel can be dragged.

指针与触控

Swipe

Swipe

触发/状态touch move

含义

A touch gesture where the user moves a finger quickly across the screen.

预期行为

Swipe can move carousels or panels, but visible controls should still exist.

请求示例

Allow swipe between examples, but keep arrow buttons visible.

键盘

Keyboard event

Keyboard event

触发/状态keydown / keyup

含义

An interaction caused by pressing or releasing a keyboard key.

预期行为

Keyboard events are used for Escape-to-close, Enter-to-submit, arrow navigation, and shortcuts.

请求示例

Close the dropdown when the Escape key is pressed.

键盘

Escape key

Escape key

触发/状态Escape

含义

A keyboard key commonly used to cancel, close, or exit a temporary UI.

预期行为

Dropdowns, menus, modals, and popovers should usually close on Escape.

请求示例

Make both the language dropdown and site menu close on Escape.

键盘

Enter key

Enter key

触发/状态Enter

含义

A keyboard key often used to activate a focused control or submit a form.

预期行为

A focused button should activate with Enter. Search forms may submit with Enter.

请求示例

Let Enter run the search when the search field is focused.

键盘

Tab key

Tab key

触发/状态Tab

含义

A keyboard key used to move focus through interactive controls.

预期行为

The Tab order should follow the visible reading and interaction order.

请求示例

Keep the tab order natural across the header controls.

UI 状态

Focus

Focus

触发/状态:focus / :focus-visible

含义

The state where an element is ready for keyboard input or activation.

预期行为

Focused controls should have a visible outline or focus style.

请求示例

Make the focused search input clearly visible.

UI 状态

Blur

Blur

触发/状态blur / focusout

含义

The state change when an element loses focus.

预期行为

Blur can validate input or close lightweight UI, but it should not surprise users.

请求示例

Do not clear the search text when the input loses focus.

UI 状态

Active state

Active state

触发/状态:active

含义

A short state while a control is being pressed.

预期行为

Active state can show a pressed effect with a slight background, border, or position change.

请求示例

Add a subtle pressed state to icon buttons.

UI 状态

Selected state

Selected state

触发/状态selected / aria-current

含义

The state of an item that is currently chosen in a list, menu, tab group, or filter group.

预期行为

Selected items should be visually different from unselected items.

请求示例

Make the active category chip clearly different from inactive chips.

UI 状态

Disabled state

Disabled state

触发/状态disabled / aria-disabled

含义

A state where a control is visible but cannot be used.

预期行为

Disabled controls should look inactive but remain understandable.

请求示例

Disable the submit button until required input is valid.

UI 状态

Checked state

Checked state

触发/状态checked

含义

The on or selected state of a checkbox, radio, or switch-like control.

预期行为

Checked state should be visibly clear and announced by the control semantics.

请求示例

Show a clear checked state for selected options.

打开与关闭

Toggle

Toggle

触发/状态toggle state

含义

An action that switches between two states, such as open and closed or on and off.

预期行为

A toggle should show its current state and update that state predictably.

请求示例

Use one button to toggle each menu category open and closed.

打开与关闭

Open / close

Open / close

触发/状态open / closed

含义

A visibility state where a panel, menu, or section is shown or hidden.

预期行为

Open and close states should be controlled consistently by buttons, outside click, Escape, or selection.

请求示例

Close the site menu when the language dropdown opens.

打开与关闭

Dropdown

Dropdown

触发/状态button -> panel

含义

A floating list that appears from a button or field.

预期行为

Dropdowns usually close after selection, outside click, or Escape.

请求示例

When a language is selected, close the dropdown.

打开与关闭

Accordion

Accordion

触发/状态section toggle

含义

A UI pattern where section headers open or close their content.

预期行为

Accordions should clearly indicate which sections are open.

请求示例

Keep all accordion categories closed by default.

打开与关闭

Modal

Modal

触发/状态open dialog

含义

A focused overlay that appears above the page and usually blocks the background content.

预期行为

Modals need close controls, Escape behavior, focus handling, and clear purpose.

请求示例

Add a close button and Escape-to-close behavior to the modal.

打开与关闭

Outside click

Outside click

触发/状态document pointerdown

含义

A click or tap outside a temporary panel such as a dropdown, menu, or popover.

预期行为

Temporary panels commonly close when the user clicks outside them.

注意

Controls that belong to the same header group may not count as outside unless the logic is written that way.

请求示例

Close the menu when the user clicks outside the menu panel.

打开与关闭

Focus trap

Focus trap

触发/状态modal open

含义

A behavior that keeps keyboard focus inside a modal or dialog while it is open.

预期行为

Focus trap prevents keyboard users from accidentally moving behind an active modal.

请求示例

Trap focus inside the modal until it is closed.

导航

Link navigation

Link navigation

触发/状态link click

含义

Moving to another page, route, or section through a link.

预期行为

Links should use correct destinations and close temporary menus after navigation.

请求示例

Close the menu after a menu link is clicked.

导航

Route change

Route change

触发/状态router navigation

含义

A change from one application route or URL path to another.

预期行为

Route changes should update page content, metadata, and active navigation state.

请求示例

Update the active navigation state after route changes.

导航

Scroll

Scroll

触发/状态wheel / touch scroll

含义

Moving the visible viewport through content that is larger than the screen.

预期行为

Scrolling can happen on the page or inside a panel with its own overflow.

请求示例

Make long dropdown menus scroll inside the panel instead of extending off screen.

导航

Anchor scroll

Anchor scroll

触发/状态href=#id

含义

A link behavior that scrolls to an element with a matching id on the same page.

预期行为

Anchor links are useful for jumping to tools, references, or sections.

请求示例

Make the Browse tools button scroll to the tools section.

输入与表单

Type

Type

触发/状态input event

含义

Entering text or values into an input or textarea.

预期行为

Typing can update state immediately, validate input, or wait until submission.

请求示例

Update search results as the user types.

输入与表单

Submit

Submit

触发/状态submit event

含义

Sending or applying form input.

预期行为

Submit should validate required input, prevent accidental reloads when needed, and show feedback.

请求示例

Prevent the form from reloading the page when it submits.

输入与表单

Reset

Reset

触发/状态reset action

含义

Returning controls or values to their default state.

预期行为

Reset should be predictable and avoid erasing important work without warning.

请求示例

Add a reset button that clears search and returns to all categories.

输入与表单

Validation

Validation

触发/状态input / submit

含义

Checking whether user input is complete and valid.

预期行为

Validation should explain what is wrong and how to fix it.

请求示例

Show a validation message when the input value is invalid.

搜索与筛选

Search

Search

触发/状态query change

含义

Finding matching items based on text entered by the user.

预期行为

Search should check useful fields such as names, aliases, descriptions, and examples.

请求示例

Make the search match Korean words, English terms, aliases, and request examples.

搜索与筛选

Filter

Filter

触发/状态filter state

含义

Narrowing a list to items that match a selected condition.

预期行为

Filters should show which condition is active and how many items remain when useful.

请求示例

Add category filters above the UI interaction term cards.

搜索与筛选

Sort

Sort

触发/状态sort option

含义

Changing the order of items by a rule such as name, date, priority, or category.

预期行为

Sorting should not remove items; it only changes their order.

请求示例

Sort matching terms alphabetically after filtering.

搜索与筛选

Debounce

Debounce

触发/状态delayed input

含义

Waiting briefly after the user stops typing before running an expensive action.

预期行为

Debounce prevents search, validation, or API calls from running on every single keystroke.

请求示例

Debounce the search input if it becomes slow with many items.

搜索与筛选

Clear

Clear

触发/状态clear action

含义

Removing a typed value, selected filter, or temporary state.

预期行为

Clear actions should affect only the intended field or state.

请求示例

Add a clear button inside the search field.

反馈

Loading

Loading

触发/状态pending state

含义

A temporary state while data, page content, or an action is still being prepared.

预期行为

Loading feedback tells users that the app is working and prevents repeated actions when needed.

请求示例

Show a loading state while the conversion result is being prepared.

反馈

Spinner

Spinner

触发/状态loading visual

含义

A visual indicator that something is loading or processing.

预期行为

Spinners work best for short waits; longer waits may need clearer progress or text.

请求示例

Show a small spinner inside the button while submitting.

反馈

Toast

Toast

触发/状态temporary message

含义

A short temporary message that appears after an action.

预期行为

Toasts are useful for confirmations such as copied, saved, or updated.

请求示例

Show a toast after copying text to the clipboard.

反馈

Error state

Error state

触发/状态error

含义

A state that tells the user something went wrong.

预期行为

Error messages should be specific, readable, and explain the next useful action.

请求示例

Show a clear error message when the input cannot be converted.

反馈

Success state

Success state

触发/状态success

含义

A state that confirms an action completed successfully.

预期行为

Success states can be subtle when the result is already visible.

请求示例

Show a small success message after settings are saved.

反馈

Empty state

Empty state

触发/状态empty result

含义

A state shown when there is no data or no matching result.

预期行为

Empty states should explain why nothing is shown and suggest a next step.

请求示例

Show a no-results message when search returns no matching terms.

反馈

Copy to clipboard

Copy to clipboard

触发/状态navigator.clipboard

含义

An action that puts text into the user's clipboard.

预期行为

Copy actions should give feedback so users know the text was copied.

请求示例

Copy the CSS property when the property chip is clicked.

动效与时间

Transition

Transition

触发/状态CSS transition

含义

A smooth change between two visual states, such as color, opacity, or position.

预期行为

Transitions can make UI feel polished, but should stay quick for tools.

请求示例

Add a short transition to menu item hover colors.

动效与时间

Animation

Animation

触发/状态CSS animation

含义

A visual motion sequence that can run once or repeatedly.

预期行为

Animation should support the task, not distract from reading or repeated work.

请求示例

Use a subtle slide-down animation when the dropdown opens.

动效与时间

Delay

Delay

触发/状态setTimeout / delay

含义

A wait before something happens or disappears.

预期行为

Delays can make feedback readable, but long delays can make the UI feel slow.

请求示例

Keep the copied toast visible for about one second.

动效与时间

Throttle

Throttle

触发/状态limited repeated events

含义

Limiting how often a repeated event handler can run.

预期行为

Throttle is useful for scroll or resize handlers that fire many times.

请求示例

Throttle the scroll handler if the page becomes janky.