Skip to content

Add ActionButton2L documentation to README#9

Merged
maxirmx merged 2 commits into
mainfrom
copilot/add-actionbutton2l-documentation
Dec 9, 2025
Merged

Add ActionButton2L documentation to README#9
maxirmx merged 2 commits into
mainfrom
copilot/add-actionbutton2l-documentation

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Dec 9, 2025

The ActionButton2L component was missing documentation in the README.

Added Documentation

  • Component overview: Two-level action button with dropdown menu and keyboard navigation
  • Props table: All inherited ActionButton props plus options array for menu items
  • Events: open, close, select with payload specifications
  • MenuOption interface: TypeScript definition showing label, action, and optional disabled
  • Keyboard navigation: Arrow keys, Enter, Escape behavior and automatic focus management
  • Accessibility: ARIA attributes, screen reader support, and focus patterns
  • Usage examples: Basic usage, event handlers, async actions, and common patterns (table row actions, conditional options)

Example

<ActionButton2L
  :item="user"
  icon="fa-solid fa-ellipsis-vertical"
  tooltip-text="User actions"
  :options="[
    { label: 'Edit', action: handleEdit },
    { label: 'Delete', action: handleDelete },
    { label: 'Deactivate', action: handleToggle, disabled: user.status !== 'active' }
  ]"
  @select="({ option, index }) => console.log('Selected:', option.label)"
/>
Original prompt

This section details on the original issue you should resolve

<issue_title>ActionButton2L</issue_title>
<issue_description>Add ActionButton2L documentation to README</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: maxirmx <2081498+maxirmx@users.noreply.github.com>
Copilot AI changed the title [WIP] Add ActionButton2L documentation to README Add ActionButton2L documentation to README Dec 9, 2025
Copilot AI requested a review from maxirmx December 9, 2025 18:44
@maxirmx maxirmx marked this pull request as ready for review December 9, 2025 19:03
@maxirmx maxirmx merged commit 3e065f4 into main Dec 9, 2025
2 checks passed
@maxirmx maxirmx deleted the copilot/add-actionbutton2l-documentation branch December 9, 2025 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ActionButton2L

2 participants