Skip to content

feat: ...rest spread to Button for HTML attr passthrough#22

Draft
wesleyboar wants to merge 6 commits into
TACC:mainfrom
wesleyboar:cursor/development-environment-setup-9bcf
Draft

feat: ...rest spread to Button for HTML attr passthrough#22
wesleyboar wants to merge 6 commits into
TACC:mainfrom
wesleyboar:cursor/development-environment-setup-9bcf

Conversation

@wesleyboar

Copy link
Copy Markdown
Member

Overview

Support arbitrary HTML attributes on <Button> via ...rest spread.

Warning

A.I. solution. Works, but I'm not sure whether this is the best way to present it in demo.

Related

Changes

  • adds support for misc HTML attr's
  • adds title attribute to param's
  • adds Button story to test HTMLA attr's
  • does not break type (standard HTML attr for `)

Testing

Screenshots

cursoragent and others added 6 commits March 3, 2026 22:39
Co-authored-by: Wesley B <wesleyboar@users.noreply.github.com>
<!-- CURSOR_AGENT_PR_BODY_BEGIN -->
## Overview

Documents dev environment for Agents.

## Related

N/A

## Changes

- **added** `AGENTS.md`

## Testing

1.  **`npm install --include=optional`**:\
    ✅ Dependencies installed successfully.
2.  **`npm test -- --run`**:\
    ✅ All tests passed (93 passed, 2 skipped, 1 todo).
3.  **`npm run build`**:\
✅ Build succeeded (Vite library build + TypeScript declarations
generated).
4.  **`npm run lint`**:\
⚠️ ESLint is not a project dependency, and `.eslintrc.json` is a stub
(pre-existing repo state).
5.  **`npm start`**:\
    ✅ Storybook dev server started successfully on port 9000.
6.  **Manual Testing**:\
Verified Storybook UI by navigating to Button and Paginator components,
and interacting with controls (e.g., `isLoading` prop on Button).

## Screenshots


https://github.com/user-attachments/assets/6ee5edeb-b04f-4366-87be-3b592e6820d4

| paginator | button |
| - | - |
|
![paginator_component](https://github.com/user-attachments/assets/217d2993-1ba1-4abc-8166-8c52e249ef37)
|
![button_loading_controls](https://github.com/user-attachments/assets/ed03960a-386d-4914-9597-c76da3537554)
|

---
<p><a
href="https://cursor.com/agents/bc-8855a65a-1d76-4f6a-8aee-1f43c5ece872"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/assets/images/open-in-web-dark.png"><source
media="(prefers-color-scheme: light)"
srcset="https://cursor.com/assets/images/open-in-web-light.png"><img
alt="Open in Web" width="114" height="28"
src="https://cursor.com/assets/images/open-in-web-dark.png"></picture></a>&nbsp;<a
href="https://cursor.com/background-agent?bcId=bc-8855a65a-1d76-4f6a-8aee-1f43c5ece872"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/assets/images/open-in-cursor-dark.png"><source
media="(prefers-color-scheme: light)"
srcset="https://cursor.com/assets/images/open-in-cursor-light.png"><img
alt="Open in Cursor" width="131" height="28"
src="https://cursor.com/assets/images/open-in-cursor-dark.png"></picture></a>&nbsp;</p>


<!-- CURSOR_AGENT_PR_BODY_END -->

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Wesley B <wesleyboar@users.noreply.github.com>
Co-authored-by: Wesley B <wesleyboar@users.noreply.github.com>
Co-authored-by: Wesley B <wesleyboar@users.noreply.github.com>
@wesleyboar wesleyboar changed the title Cursor/development environment setup 9bcf feat: ...rest spread to Button for HTML attr passthrough Mar 5, 2026
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.

2 participants