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.