FE-647: Add button component#8687
Conversation
PR SummaryMedium Risk Overview Extends sizing across the DS with a new Updates Ladle stories (Button/Tooltip/LoadingSpinner) and migrates Petrinaut button usages from the legacy Reviewed by Cursor Bugbot for commit abc9787. Bugbot is set up for automated code reviews on this repo. Configure here. |
🤖 Augment PR SummarySummary: This PR introduces a new Design System Changes:
Technical Notes: The new Button relies on recipe-driven slot classes and uses an overlay approach for loading state (spinner + hidden content) to preserve layout while busy. 🤖 Was this summary useful? React with 👍 or 👎 |
94554be to
f98192b
Compare
See the output of git range-diff at https://github.com/hashintel/hash/actions/runs/25672807807
See the output of git range-diff at https://github.com/hashintel/hash/actions/runs/25676902013
🌟 What is the purpose of this PR?
There are more custom buttons in petrinaut that we can port over to this new Button - including all IconButtons, but I'll do that in a follow up PR to keep the PR size more manageable.
I'll also be looking to do a design review with CiaranH. Depending on the discussion there may be follow on updates.
🔗 Related links
Designs
Pre-Merge Checklist 🚀
🚢 Has this modified a publishable library?
This PR:
📜 Does this require a change to the docs?
The changes in this PR: