feat: ...rest spread to Button for HTML attr passthrough#22
Draft
wesleyboar wants to merge 6 commits into
Draft
Conversation
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 |
| - | - |
|

|

|
---
<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> <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> </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>
This was referenced Mar 5, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Support arbitrary HTML attributes on
<Button>via...restspread.Warning
A.I. solution. Works, but I'm not sure whether this is the best way to present it in demo.
Related
Changes
titleattribute to param'stype(standard HTML attr for `)Testing
Screenshots
…